Skip to content

Instantly share code, notes, and snippets.

@PurpleHippoDesign
Created May 16, 2014 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PurpleHippoDesign/301db50a2bdc9379c222 to your computer and use it in GitHub Desktop.
Save PurpleHippoDesign/301db50a2bdc9379c222 to your computer and use it in GitHub Desktop.
Adds the featured image to single posts
// add featured image to single posts
add_action ( 'genesis_entry_header', 'pbh_featured_image_title_singular' );
function pbh_featured_image_title_singular() {
if ( !is_singular() || !has_post_thumbnail() )
return;
echo '<div class="singular-thumbnail">';
genesis_image( array( 'size' => 'medium' ) );
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment