How to disable feature in single post in theme Elevate?

Homepage Community Forums General How to disable feature in single post in theme Elevate?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20102
    khun
    Customer

      I want feature image in homepage but i dnt want to see feature image 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

        #20111
        khun
        Customer

          thank you

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘How to disable feature in single post in theme Elevate?’ is closed to new replies.