Reply To: Feature Image showing above blog posts

Homepage Community Forums SquareOne Theme Support Feature Image showing above blog posts Reply To: Feature Image showing above blog posts

#22301
Jessy
Customer

    Remove this code from your functions file –

    //* Add featured image above the entry content
    add_action( 'genesis_entry_header', 'squareone_featured_photo', 5 );
    function squareone_featured_photo() {
    
    	if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    
    	if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
    	}
    
    }

    Or you could leave it in and comment the code out so it doesn’t show up on the site. That seems to be how they’re doing it in the latest versions of their newer themes.