Featured image issue with Blog page – SquareOne Theme

Homepage Community Forums General Featured image issue with Blog page – SquareOne Theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22291
    pecographe
    Customer

      Hi Wes,

      Thanks for your updated SquareOne theme – things get better and better!

      I’ve updated my site and used the improved slider as per other posts.

      All is almost perfect except that I am having an issue with my featured images not displaying on the blog page unless I check ‘featured image’ in the ‘theme settings’ / ‘content archive’ section. If this is done then I then get the featured image showing above the blog post for instance http://bit.ly/2mTF4Nn

      I would be grateful for some help or ideas.

      #22305
      Wes
      Moderator

        If you want to remove the Featured Image from showing on the Post page itself, then go to your functions.php file and comment out (or remove) this part –

        //* 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' ) );
        	}
        
        }

        Let me know if that helps.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.