Below is the code to display a featured image above single post 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 | |
//* Display featured image above single post title in Genesis | |
function prefix_display_featured_image_above_title() { | |
if (!is_singular('post')) return; | |
the_post_thumbnail('medium'); // medium resolution (default 300x300 pixels max) | |
} | |
add_action('genesis_entry_header', 'prefix_display_featured_image_above_title', 8); |