Last active
August 22, 2019 20:58
-
-
Save justadityaraj/f0fab3ba6afc18bcb373a8cf45468e18 to your computer and use it in GitHub Desktop.
Genesis Framework: Display featured image after the title
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 | |
//Remove the opening <?php tag! | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} | |
//wpRumors - Display featured image below title on the single post in Genesis | |
add_action( 'genesis_entry_content', 'featured_post_image', 8 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment