Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 15, 2015 05:58
Show Gist options
  • Save braddalton/5212506 to your computer and use it in GitHub Desktop.
Save braddalton/5212506 to your computer and use it in GitHub Desktop.
function wpsites_image_before_title() {
if(is_page() )
echo '<div class="header-banner"><img src="http://example.com/url/to/image.jpg" alt="header banner" /></div>';
}
add_action('genesis_before_post_title', 'wpsites_image_before_title');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment