• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

WP SITES

2296

Original Genesis Tutorials & 5000+ Code

Snippets

  • Subscribe
  • Full Access
  • Videos
  • Log in
  • Twitter
  • Facebook
  • LinkedIn
  • Email
  • More
  • Reddit
  • Tumblr
  • Google
  • Print
  • Pinterest
  • Telegram
  • Pocket
  • Skype
  • WhatsApp

Remove Sidebar On Genesis Home, Page or Posts

The easiest way to remove a sidebar from your home page if using a Genesis child theme is to add this code to your child theme’s home.php file.

remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );

Make sure you add the PHP code before the genesis(); tag.

You could also add CSS code to your child themes style.css file to hide the sidebar from your home page:

.home #sidebar {
display: none;
}

Once you remove the sidebar from your home page, you may want to increase the content area to 100% width to fill the white space from where you’ve removed the sidebar.

.home #content {
width: 100%;
}

Change the percentage if you don’t want to display full width content.

Remove Sidebar on Pages and Posts

Simple change the layout settings to full width.

Full Width Page Layout Settings

Or you can find your post or page i.d in your source code and use it with CSS code in your child themes style.css file.

.postid-37900 #sidebar {
display: none;
}

Remove Sidebar From Archive Pages Using CSS

Removing the sidebar from archive pages like your blog or category archives is very similar to removing the sidebar from static pages.

Grab the category i.d or page template name from your body class in the source code and use it with CSS code in your child themes style.css file.

.page-template-page_blog-php #sidebar {
display: none;
}

Related Tutorials

  • Add Custom Sidebar & Remove Primary Sidebar
Subscribe for new Genesis Tutorials

Primary Sidebar

Brad Dalton Specializes In StudioPress child theme customization & code modification. Access all code

Featured Downloads

  • Responsive Image After Header On Single Pages 67126
  • Rotate Widget Background Images In Genesis 67200
  • Template To Display All Posts by Each Category In Genesis 67050
WordPress Speed Test
  • Membership
    • Account Subscription Details
  • Tagged by Theme
  • Blog
  • T.O.C
    • Membership F.A.Q’s
  • RSS
  • Contact
  • Newsletter ( Twice Weekly )

Usage Policy · Tools & Resources


Images, code, and content on this website are property of wpsites.net and are protected by copyright law.
WP Sites does not grant permission for any repurposing, republication, or redistribution.
"Disclosure: Some of the links in some posts are "affiliate links."
This means if you click on the link and purchase the item, I will receive an affiliate commission.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.