WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing sidebar from single page (8 posts)

  1. afropunk
    Member
    Posted 7 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.

  2. drmike
    Member
    Posted 7 years ago #

    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.

  3. mendezki
    Member
    Posted 7 years ago #

    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:

    <?php
    /*
    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.

  4. afropunk
    Member
    Posted 7 years ago #

    Thanks. That works fine. Thanks for your support.

  5. pad
    Member
    Posted 7 years ago #

    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:

    Line: 23
    Char: 3

    'null' is null or not an object

  6. whooami
    Member
    Posted 7 years ago #

    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.

  7. pad
    Member
    Posted 7 years ago #

    This thread is exactly to do with my problem. All the threads I'm bumping are the problem I have. In this case, it's been 'resolved' but still leaves a javascript error!

  8. newsaddikt
    Member
    Posted 7 years ago #

    how do i
    'edit the div containing the page content to accommodate for the wider page.' ?

Topic Closed

This topic has been closed to new replies.

About this Topic