Snippets: Display Full Featured Image At The Top of Posts

function my_page_featured_image() {
	if ( is_singular( 'post' ) && has_post_thumbnail() ) {
		echo '<div class="myprefix-large-featured-image clr">'. get_the_post_thumbnail( '', 'full' ) .'</div>';
	}
}
add_action( 'wpex_hook_main_top', 'my_page_featured_image' );

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file.