How to remove the sidebar in this situation (9 posts)

  1. Janus12
    Posted 3 years ago #

    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!

  2. Robby
    Posted 3 years ago #

    Looks like a widget?

  3. Janus12
    Posted 3 years ago #

    yes it is a widget

  4. Janus12
    Posted 3 years ago #

    its called sidebar right

  5. Pioneer Web Design
    Posted 3 years ago #


  6. Luke Woodward
    Posted 3 years ago #

    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.

  7. Janus12
    Posted 3 years ago #

    yes the site is http://supercarmotivation.com/Forums/forum/forum-sections/

    Keep in mind its a work in progress ;)

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

  8. Luke Woodward
    Posted 3 years ago #

    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 :)

  9. Janus12
    Posted 3 years ago #

    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! :)

Topic Closed

This topic has been closed to new replies.

About this Topic