• 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

Remove featured image from full content post

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 › Remove featured image from full content post

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by blogger boutique.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 20, 2015 at 9:42 am #174396
    Deluxe Designs
    Member

    I have added this code in the functions.php file:

    add_action('template_redirect', 'sp_custom_post_content');
    function sp_custom_post_content(){
      // only work for home & blog template page
      if( is_page_template('page_blog.php') ){ 
        remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
        remove_action( 'genesis_post_content', 'genesis_do_post_content' );
        add_action( 'genesis_entry_content', 'genesis_do_custom_post_content' );
        add_action( 'genesis_post_content', 'genesis_do_custom_post_content' );
      }
    }
    function genesis_do_custom_post_content(){
      global $wp_query;
      if( $wp_query->current_post == 0 ){ 
       // Only first post will display full content
        the_content();
      }else{
        the_excerpt();
      }
    }
    

    This code successfully allows my blog page to display a full content featured post and excerpts below it. My homepage includes excerpts with featured images, so checking the featured images for excerpts in the Genesis settings is necessary.

    I need to remove the featured image in only the full content post. The ways I have considered (and tried unsuccessfully) include adding a div around the full content post or adding a line to remove featured images: remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    The latter code just removes featured images completely, but it's possible I am just not placing it in the right part of the code.

    For what it's worth, I have tried using Bill Erikson's grid loop and for some reason it's not taking; I think it is conflicting with something else. The code I used above works, except for it displaying the featured image.

    Thanks.

    http://www.deluxe-designs.net/AMaul/blog/
    December 23, 2015 at 10:38 am #174648
    blogger boutique
    Participant

    This is an old code, and you'll need to tweak for blog posts, but maybe this will get you going in the right direction???

    /** Remove the archive thumbnail from the blog page */
    add_action( 'genesis_before_content', 'custom_conditional_actions' );
    function custom_conditional_actions() {
    if( is_front_page( 'home.php' ) && 'full' == genesis_get_option( 'content_archive' ) )
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );
    }

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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