Removing sidebars and search field on home page
-
Does anybody know how to remove the side columns (including recent comments, archives, blog roll, meta, etc.) and search field on the home page? I’m using the Oxygen theme and for some reason they only show up partially on my home page when I maximize the screen. I’d like to take them out altogether.
The blog I need help with is: (visible only to logged in users)
-
If you’d like to simply change out the content for the left sidebar, you can adjust them from the Appearance → Widgets page.
If you want to remove the sidebar using CSS, you might start with something like this:
#secondary { display: none; } #content { margin-left: 0; }If you want to limit that example to the home page, add “.home” to the front of both selectors in the example above.
-
Awesome, thank you so much! Is there a way to remove the BlogRoll and Meta section? The code you gave me worked for the left side bars, but not sure how to go about removing the right-side ones.
-
The CSS for that would be very similar.
Add this to the #content block:
width: 100%;And then add this:
#tertiary { display: none; }If you right-click on the sidebar and select the “Inspect Element” option, you should be able to browser through the HTML so you can see were id=”tertiary” gets set and so you have a better idea for how the CSS is working based on the HTML.
-
The CSS for that would be very similar.
Add this to the #content block:
width: 100%;And then add this:
#tertiary { display: none; }If you right-click on the sidebar and select the “Inspect Element” option, you should be able to browser through the HTML so you can see were id=”tertiary” gets set and so you have a better idea for how the CSS is working based on the HTML.
-
Ahh, ok I was wondering how to find the element’s html. Thank you so much! This really helps.
- The topic ‘Removing sidebars and search field on home page’ is closed to new replies.