Remove sidebar only on content pages
-
Hello!
I’m working with the Sight theme on http://travelblaug.wordpress.com. I’d like the pages to be full-width, except for the homepage where I’d like to keep the right sidebar. How can I change the CSS code to achieve that? (PS: I purchased the customization upgrade).
Thank you for your help!
Marshmallau
The blog I need help with is: (visible only to logged in users)
-
Hi Marshmallau, this will remove the sidebar from static pages such as Finlande
.page #secondary { display: none; } .page #primary { width: 100%; }This will take care of the single post pages:
body.single #secondary { display: none; } body.single #primary { width: 100%; } body.single .entry-content, .single .entry-header { padding-right: 2.5em; } body.single .comments-link { right: 2.5em; }If you wish to remove the sidebar from the categories/archives/tags pages, then the following will do that.
.archive #secondary { display: none; } .archive #primary { width: 100%; } -
-
- The topic ‘Remove sidebar only on content pages’ is closed to new replies.