Created
June 26, 2019 06:00
-
-
Save justadityaraj/e4caf2486afe595655c001d5d1076cda to your computer and use it in GitHub Desktop.
Adding the code snippet in your functions.php file of the child theme will automatically have the featured image appear on 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
<?php //<= remove this | |
/* Code to Display Featured Image on top of the post */ | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment