Support » Fixing WordPress » How to remove the sidebar in this situation

  • Janus12


    Ok here is the situation.

    I am making a website and I installed bbpress forums. I got everything configured to how I like it but there is still one thing that needs to change.

    On the forums pages the side bars need to be removed. A picture of the problem is included. The sidebar is circled in red.

    How can I keep the sidebar on all the other pages but remove it on the forums page.

    Please help as this is one of the final hurdles I need to overcome.

    Thank you for your time!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Robby


    Looks like a widget?



    yes it is a widget



    its called sidebar right

    Pioneer Web Design



    This depends what template the forum is using. It’s hard to tell based off of just your picture and no code. Depending on the template, you can do this with Conditional Tags or you may be able to do with with the Template Hierarchy.

    Is there a link to a demo site you could post? Perhaps a better answer could be offered.



    yes the site is

    Keep in mind its a work in progress 😉

    [ Please do not bump, that’s not permitted here. ]

    It looks like this is using the single.php template. It also appears that here is an is_bbpress() conditional tag.

    In your single.php template you should have a call to get_sideber()

    Wrap it like this:

    if ( ! is_bbpress() ){
    } //endif

    If that doesn’t work, it may be using a different page template, but from what I can tell that should work.

    Anybody more familiar with BBPress could probably give better advice on how BBPress hooks into WordPress, but give it a shot, it may just work 🙂



    Thanks for your help!

    Unfortunately that did not work but I am not entirely sure I did it correctly. I could not find get_sidebar()

    Thank you very much for your help though! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove the sidebar in this situation’ is closed to new replies.