Remove SideBar In Certain Pages
You are looking for information on Conditional Tags:
Scroll down near the bottom to “Variable Sidebar Content”.
I have the same problem as @tculley. Been going around in circles.
The Conditional Tags ‘Variable Sidebar Content’ functionality is great if you need to display different sidebar content on different pages. But what I am trying to do is remove the sidebar completely on certain pages.
The most frustrating thing is I have done this before, but in my excitement it seems I did not bookmark the tutorial I followed.
The solution I used before was really simple and went something like this – The tutorial provided some code to be pasted into one of the .php files (can’t remember which one). It then told me to create a new page template, without a sidebar, and upload to WP. Now when I went into edit any of the pages there was an additional menu on the right hand side that would allow me to assign the new, non-sidebar template to the page.
It was the perfect solution, but I cant for the life of me find the tutorial I followed.
Does anyone know of the colouration I’m talking about? If so, pleeese let me know.
What I used last time was WordPress Custom Page Template functionality.
It’s so simple. You literally need to duplicate your page.php template file and rename it (or create a new one with the look you what, just make sure the file name is not page.php). In the new file you add a couple of lines of php and remove the elements you don’t want to see, then upload that file to your theme folder. Now when you can go to create or edit a page, you’ll see a new drop down menu on the right hand side called ‘Page Template’. Just pick the new template and that’s what will be displayed on that page. Magic.
Here’s a couple of very easy to follow tutorials :
Hope this helps.
I got rid of the sidebar (mostly) but there’s still the outline of the dull gray color there. I’m guessing that I have to alter the style.css but not sure what to change. Does anyone have any suggestions? I’m using the default Kubrick theme on WP 2.9.2. Any help is greatly appreciated.
I believe this will be the site you are seeking for
I am using thesis theme and I want to do the same for a post instead of a page.
so I got ma self a plugin where I can use custom templates for posts its called Single Post Template and now I am confused as thesis uses its own template so should I go and copy the that one ?
Hope u guys can help me out here.
- The topic ‘Remove SideBar In Certain Pages’ is closed to new replies.