• 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

Removing Primary Sidebar

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 › Removing Primary Sidebar

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by Ozzy.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 30, 2012 at 3:46 pm #2631
    avhslibrary
    Member

    My site is amadorvalleyhs.org

    I sought out help to  remove the primary sidebar from my site. And was fortunate to get this bit of code which I placed in the functions.php file.

    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );

    It works out well on the home page but does not do so well on other pages where I am also using the secondary sidebar:

    Eg: http://www.amadorvalleyhs.org/student-life/athletics

    There is extra space where the primary sidebar should be, preventing the test in the main area from moving over (filling in the area where the primary sidebar was.)

    Any help to get the text to move over would be appreciated!  Erik

     

     

    November 30, 2012 at 3:58 pm #2638
    Ozzy
    Member

    if you're just wanting to remove the sidebar from the home page, you could either force a full width page on the home page or do put something like this in your functions.php file:

    // remove sidebar from home
    add_action ('genesis_before_loop', 'remove_sidebar_home');
    function remove_sidebar_home() {
    if (is_home() ) {
    remove_action ('genesis_after_content','genesis_get_sidebar');
    }
    }


    Ozzy Rodriguez | Twitter | Google+

    November 30, 2012 at 4:28 pm #2661
    avhslibrary
    Member

    Hi--I don't need for the home. The code I have in place is working fine for the home. The problem I have is with the subpages.

    November 30, 2012 at 4:48 pm #2671
    avhslibrary
    Member

    For example:

    http://www.amadorvalleyhs.org/student-life/athletics

    The text does not go over all the way even though the sidebar is not visible.

    November 30, 2012 at 5:06 pm #2680
    Ozzy
    Member

    have you tired going to Genesis > Theme Settings and changing the default layout to full width?


    Ozzy Rodriguez | Twitter | Google+

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

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