• 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 Primary Side Bar from Home Page of METRO Theme

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 › General Discussion › Remove Primary Side Bar from Home Page of METRO Theme

This topic is: not resolved

Tagged: home page, Metro theme., primary side bar, remove

  • This topic has 6 replies, 4 voices, and was last updated 11 years, 8 months ago by PaulS.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 12, 2013 at 7:49 pm #55932
    PaulS
    Member

    xx

    August 12, 2013 at 7:53 pm #55934
    PaulS
    Member

    i have a pretty simple request - i want to remove the PRIMARY SIDE BAR from the Home Page only of the Metro theme.

    i have tried all of the solutions for other child themes when searching:
    remove primary side bar from home page

    ... and anything close to that query ... no luck

    does anyone know the code to remove the primary side bar from the homepage of the Metro theme?

    i still want all the other full width widgeted content areas for the home page (Home Top, Middle Left, Middle Right, etc) - just not the Primary Side Bar on the right.

    another caveat - i also need to use the SIMPLE SIDEBAR plugin to control content on specific pages. i did de-activate the plugin to see if that was the problem ... but it's not ... the sidebar always shows up on the home page

    please help. thx so much!!

    August 13, 2013 at 7:49 pm #56221
    mromero
    Member

    Why do you wish to remove the primary sidebar?

    Is it that you wish to display different content in the sidebar for the Home Page and the Inside Pages?

    August 13, 2013 at 9:00 pm #56226
    nunotmp
    Member

    Try adding this to your functions.php file:

    if ( is_home() ) { remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); }


    Genesis Child Themes – Follow Me

    August 13, 2013 at 9:47 pm #56229
    PaulS
    Member


    @mromero
    - i want to remove the primary sidebar from the home page and have a full-width image slider. and i want to keep the Home Top, Middle Left, Middle Right templated widget areas that come on this cool front page.


    @nunotmp
    - that did not work ... any ideas why it wont work with this theme?

    thx very much for your help PAUL

    September 13, 2013 at 4:35 pm #62385
    WebSouth
    Member

    @PaulS Don't know if you are still trying to remove the sidebar on the homepage of Metro but try this it worked for me.

    Instead of this
    // Force content-sidebar layout setting
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
    Use this
    // Force full width layout setting on home page
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    On the front-page.php


    Web South Solutions

    September 17, 2013 at 3:30 pm #63048
    PaulS
    Member

    thx @websouth - i used a plugin called LAYOUT EXTRAS and it worked fine

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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