• 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

Innov8tive – Remove primary sidebar from homepage

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 › Innov8tive – Remove primary sidebar from homepage

This topic is: not resolved

Tagged: homepage, Innov8tive, primary sidebar

  • This topic has 7 replies, 2 voices, and was last updated 12 years, 4 months ago by Sridhar Katakam.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 26, 2013 at 6:10 pm #64397
    TeresaMc
    Member

    Using the Innov8tive theme: I would like to remove the primary sidebar from the homepage only, and have the remaining widgets on the homepage go full width.

    I've been playing with code, but just can't seem to get it right.

    Any suggestions? Thanks a million!

    http://playtimeandparty.com/
    September 26, 2013 at 11:45 pm #64431
    Sridhar Katakam
    Participant

    Try this in functions.php:

    add_action ( 'genesis_meta', 'sk_full_width_homepage' );
    function sk_full_width_homepage() {
    	# Force full width content
    	add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    }

    Genesis Tutorials | Follow me on Twitter

    September 27, 2013 at 11:36 am #64478
    TeresaMc
    Member

    Thanks for your input Sridhar!

    That code works when the homepage is in blog mode, but when I use the home top, home left, home right and home bottom widgets it reverts back the homepage with the primary sidebar.

    With that code the primary sidebar is removed from ALL posts. I just wanted it removed from the homepage but remain on the blog posts.

    Picky, aren't I?! LOL

    September 27, 2013 at 11:39 am #64479
    TeresaMc
    Member

    I tried using that code in the homepage.php and it just gave me a parse error.

    September 27, 2013 at 1:44 pm #64505
    Sridhar Katakam
    Participant

    Try using this instead:

    add_action ( 'genesis_meta', 'sk_full_width_homepage' );
    function sk_full_width_homepage() {
    	if ( is_home() || is_front_page() ) :
    		# Force full width content
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    	endif;
    }

    Genesis Tutorials | Follow me on Twitter

    September 27, 2013 at 2:25 pm #64513
    TeresaMc
    Member

    Works in blog mode for the homepage and leaves primary sidebar in posts - but when I activate the homepage widgets the primary sidebar appears again.

    September 27, 2013 at 2:27 pm #64514
    TeresaMc
    Member

    How can I delete the primary sidebar from the homepage?

    September 27, 2013 at 8:45 pm #64542
    Sridhar Katakam
    Participant

    Try adding the following inside the if condition:

    /** Remove default sidebar */
    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );

    I do not have that theme or else I could have tested before suggesting you the code snippets.


    Genesis Tutorials | Follow me on Twitter

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

© 2026 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