• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Feature Image showing above blog posts

Home › Community Forums › SquareOne Theme Support › Feature Image showing above blog posts

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 2 months ago by pecographe.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 16, 2018 at 5:03 pm #22286
    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 issues not displaying on the blog page. I can get the featured image to show on the blog page by ticking for ‘featured image’ in the ‘theme settings’ content archive section. The problem with this is that I then get the featured image showing above the blog post http://bit.ly/2rew5uU

    Do you have any ideas how to resolve this!

    January 16, 2018 at 11:43 pm #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.

    January 21, 2018 at 1:56 am #22321
    pecographe
    Customer

    Thanks Jessy!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework