Reply To: How to disable feature in single post in theme Elevate?

Homepage › Community Forums › General › How to disable feature in single post in theme Elevate? › Reply To: How to disable feature in single post in theme Elevate?

#20107
Eric
Customer

    Look in your functions file and remove (or comment out) the code for the Featured Images –

    //* Add featured image above the entry content
    add_action( 'genesis_entry_header', 'elevate_featured_photo', 5 );
    function elevate_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' ) );
    	}
    
    }

    This code is for the Featured Images to show on your Single Pages. Once you remove this code, it won’t show up on your Single pages, but it will still show on your Homepage as well as the Blog like normal.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com