Created
May 16, 2014 11:13
-
-
Save PurpleHippoDesign/301db50a2bdc9379c222 to your computer and use it in GitHub Desktop.
Adds the featured image to single posts
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 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