• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Not double photos when set to Excerpt view

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Not double photos when set to Excerpt view

This topic is: not resolved

Tagged: featured photo

  • This topic has 3 replies, 1 voice, and was last updated 9 years, 4 months ago by thibaultsa.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 17, 2016 at 4:58 am #179221
    thibaultsa
    Member

    Hi,

    I'm sure this is a basic question but for some reason I can't find a fix, and I've played around with the theme settings quite a bit.

    Basically I would like to have my articles show up on my homepage as simple structure : Title - Featured Photo - Excerpt, with a "read more" option. I seem to have done so by putting the Genesis theme settings to "display : entry excerpt", and ticked the box for the featured photo to appear.

    My issue now is that the featured photo also appears in the article under a resized format, which is an issue because I already have manually included the full size photo in the article, so right now it just basically shows two photos. Sometimes I also use a different photo from featured to the one I use for the article.

    Is there a way to not have the featured photo appear in the blog post as well?

    Lastly, is there a way to have the "read more" at the end of the excerpt, as it shows when I set "excerpt" function under wordpress settings (vs. genesis settings) ?

    I hope this is clear enough.

    Thanks!

    February 18, 2016 at 5:29 am #179299
    thibaultsa
    Member

    I would like to double check before I do something I will regret...but I've been looking and it seems like I need to delete a line of code in my FTP manager.

    Is this correct that removing the following line will solve my problem?

    //* Add featured image above the entry content
    add_action( 'genesis_entry_content', 'generate_featured_photo', 8 );
    function generate_featured_photo() {
    if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '<div class="featured-image">%s</div>', $image, the_title_attribute( 'echo=0' ) );
    }
    }

    Is there anything else I may have missed ?

    Many thanks

    February 18, 2016 at 5:30 am #179300
    thibaultsa
    Member

    To be clear, I got this code line in my file function.php

    February 24, 2016 at 4:14 am #179772
    thibaultsa
    Member

    Has nobody experienced the same issue? Any help would be greatly appreciated.

    Thanks

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble