Last active
November 6, 2015 02:07
-
-
Save jpmarchand/9ffbeaea54e293c770f9 to your computer and use it in GitHub Desktop.
Display featured image above single post title in Genesis. Source: http://ryantownley.com/display-featured-image-before-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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment