Last active
May 9, 2022 05:37
-
-
Save srikat/7940166 to your computer and use it in GitHub Desktop.
Adding a full width banner image in Genesis. http://sridharkatakam.com/full-width-header-navigation-metro-pro/#comment-1263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action ( 'genesis_before_header', 'sk_add_full_width_banner_image' ); | |
function sk_add_full_width_banner_image() { | |
echo '<div class="banner-image"><img src="http://genesis.dev/wp-content/uploads/2013/12/header.jpg" /></div>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.banner-image { | |
text-align: center; | |
} | |
.banner-image img { | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment