Full Width Pages
-
I can’t seem to change the page width after removing the sidebar. I only want the side bar on one page, but not the rest. I removed the sidebar from those pages, but now I can’t change the width. Help?
-
Hi natasharamizer,
After removing the sidebar you have to edit the style.css at line 713 in this way:#primary { float: left; padding-right: 0; width: 100%; }In this way, the theme will occupy the entire width!
CrestaProject
Thank you for your reply! 🙂 I actually want the first page to keep the sidebar. The other pages are perfect with that code, but how do I keep the sidebar on the home page?
Actually, I want to leave the home page alone, and change the width on the other pages.
Hi,
You could use this code css:.page #primary, .single #primary { float: left; padding-right: 0; width: 100%; }Then open the file sidebar.php and replace this:
if ( ! is_active_sidebar( 'sidebar-1' ) ) {With this:
if ( ! is_active_sidebar( 'sidebar-1' ) && is_singular() ) {It should work 🙂
CrestaProject
It didn’t work. The width is changed on all pages, but also the blog page and the sidebar is gone. I want the side bar to remain on the blog page and the other pages to be full width.
Where exactly should I put the css code?
Nevermind, I got it!! Thank you so much!
hi!!
i want to leave the sidebar on my front page, but i want to remove it from the other pages, specially product pages such as:
how did you do it??? im pulling my hair!
thanks
The topic ‘Full Width Pages’ is closed to new replies.
