Last active
March 7, 2018 18:32
-
-
Save ryantownley/228a91412a4576b12a54 to your computer and use it in GitHub Desktop.
Display featured image before single entry title in Genesis
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
<?php | |
//* Do NOT include the opening php tag | |
//* Display featured image before single entry title. | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('large'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment