Support » Installing WordPress » Removing sidebar from single page
10 years ago
Hi. I wonder if you can help with my problem. How do i remove the sidebar from one of my pages. If you look at my site, i want to remove the sidebar from the forum page, so the forum can expand in width.
thanks for your help.
Find the Page template that’s used for teh page and remove the get_sidebar call.
You’re also going to have to create a new div for the wider area as well.
If this is a page loading in the page.php template I’d suggest copying the page.php template, rename it to, whatever, forum.php, add the following code to your new file:
Template Name: Forum
and remove the <?php get_sidebar(); ?> call.
Upload the file to your server.
Edit the Forum page in WordPress, selecting ‘Forum’ in the ‘page template’ dropdown box. Et voila.
However, as drmike said, you might need to edit the div containing the page content to accommodate for the wider page.
Thanks. That works fine. Thanks for your support.
I’m just going to keep bumping threads like this up till someone – anyone – can tell me how to solve the error this method produces in IE7:
‘null’ is null or not an object
pad, youre going to bump threads that have nothing to do with your problem? OK. Have at it, I guess, but that seems sort of forum-unfriendly and needless, if you ask me.
9 years, 11 months ago
how do i
‘edit the div containing the page content to accommodate for the wider page.’ ?