• 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

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

This topic is: not resolved

Tagged: featured image, post layout, remove image

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 2 months ago by viorelepuran.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 23, 2014 at 10:37 am #102071
    viorelepuran
    Member

    Hello, i am using Metro Pro theme and i am trying to remove the featured image from full width post only.Does anyone knows hot to do it?
    I tryed to add this code, but i had no luck.Please share your wisdom with me

    function be_remove_image_from_features() {
    // First, we make sure we're in the grid loop.
    if( ! apply_filters( 'genesis_initial_layouts', false ) )
    return;

    if( in_array( 'full-width-content', get_post_class() ) ) {
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );
    } else {
    add_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_post_content', 'genesis_do_post_image' );
    }
    }
    add_action( 'genesis_before_entry', 'be_remove_image_from_features' );
    add_action( 'genesis_before_post', 'be_remove_image_from_features' );

    April 23, 2014 at 11:24 am #102083
    Brad Dalton
    Participant

    Link to the full width post please.


    Tutorials for StudioPress Themes.

    April 23, 2014 at 11:25 am #102084
    viorelepuran
    Member

    Brad, thank you for being so king and trying to help me, but i tought about it more and more, and comed up with this code, that worker like a charme:

    function be_remove_image_from_features() {
    $site_layout = genesis_site_layout();

    if( 'full-width-content' === $site_layout) {
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );
    } else if ( genesis_site_layout('default') ) {
    add_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_post_content', 'genesis_do_post_image' );
    }
    }
    add_action( 'genesis_before_entry', 'be_remove_image_from_features' );
    add_action( 'genesis_before_post', 'be_remove_image_from_features' );

    Thank you for taking the time to respond to my problem!

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