Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 14:21
Show Gist options
  • Save srikat/67c7689320d0f2365dd9 to your computer and use it in GitHub Desktop.
Save srikat/67c7689320d0f2365dd9 to your computer and use it in GitHub Desktop.
add_action( 'genesis_after_header', 'sk_blog_banner' );
/**
* Full Width Banner Image on Posts page
*
* @author Sridhar Katakam
* @link http://sridharkatakam.com/
*/
function sk_blog_banner() {
if ( ! is_home() ) {
return;
} ?>
<div class="blog-banner">
<img src="http://placehold.it/1600x222&amp;text=Banner" alt="Banner" />
</div>
<?php
}
/* Full Width Banner Image on Posts page
--------------------------------------------- */
.blog-banner {
text-align: center;
}
.blog-banner img {
width: 100%;
vertical-align: top;
}
@srikat
Copy link
Author

srikat commented May 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment