Taking out the sidebar on Wordpress pages
December 8th, 2009
Okay, someone asked me on twitter how to do this, because they wanted a forum page and the sidebar was getting in the way.
So you need to edit just one page. What your going to want to do is create a new “template” for the page. So make a copy of page.php and rename it… say “forum.php”.
and add this at the top of the page to make sure wordpress knows its a template page:
<?php
/*
Template Name: Forum
*/
?>
next, you need to find <?php sidebar(); ?> in the code and remove it, or comment it out, save the file to the same directory as the rest of your template files. (index.php page.php single.php or whatever else is in there)
Now you need to create your page again (in the admin panel), so im assuming you can just copy/paste the forum code into the “html” section….
Make the new page, paste the code into the html section. and on the bottom right under “attributes” theres a dropdown menu labeled “template” defaulted to “default template”. click that and change it to “Forum”.

Hope this helps!
Get Updates Via Email
Get Updates Via RSS
![[shanejonas.com]](http://shanejonas.com/blog/wp-content/themes/ShaneJonas/images/logo.gif)























