Last active
August 29, 2015 13:55
-
-
Save srikat/8750049 to your computer and use it in GitHub Desktop.
Banner image below header in eleven40 Pro. http://sridharkatakam.com/add-image-header-eleven40-pro/
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_after_header', 'sk_show_banner_below_header' ); | |
function sk_show_banner_below_header() { | |
echo '<div class="banner-below-header"> | |
<div class="wrap"> | |
<img src="http://genesis.dev/wp-content/uploads/2014/01/header-1140x200.jpg" alt="my banner" /> | |
</div> | |
</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 below header | |
--------------------------------------------- */ | |
.banner-below-header { | |
margin: 105px 0 40px; | |
} | |
.site-inner { | |
margin: 0; | |
} | |
.site-description { | |
margin-top: 0; | |
} | |
.banner-below-header img { | |
vertical-align: top; | |
} | |
@media only screen and (max-width: 1023px) { | |
.banner-below-header { | |
margin: 40px 0 40px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment