Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issues Removing the Sidebar

  • @kslad

    Participant

    Hi guys,

    I have done my research and I have been able to remove the side bar from (what I think is) the top level of the forums by editing the archive-forum.php file.

    When I select a forum (I currently only have one) and a topic in the forum (again, I only have one) I still see my theme’s sidebar. I decided to modify the archive-topic.php file and comment out the get_sidebar(); line (as I did above), but unlike above, this did not work.

    I commented out the get_sidebar(); line for every file in the plugins/bbpress/templates/default/extras folder. This did not work for me.

    My question is: how do I remove my theme’s sidebar from the list of forums, topics and inside the topics too?

Viewing 25 replies - 1 through 25 (of 25 total)
  • @lynq

    Participant

    You could use CSS?

    In the body tag there is a bbpress class, soy you could do something like:

    .bbPress .sidebar { display: none; }

    good luck!

    @kslad

    Participant

    Thanks for your reply.

    This would work, but unfortunately it is my theme’s sidebar that is displaying, not BBPress’ side bar.

    Any other suggestions?

    @labsecrets

    Participant

    What is is your URL? I will give you the CSS for your theme…

    @kslad

    Participant

    Thanks!
    It is my theme sidebar that appears once you start to enter the forums. Currently I have it removed at the top level.

    http://www.koawatea.co.nz/forums

    @labsecrets

    Participant

    Kslad

    this will bring joy to your heart.

    Add it to your css file wherever you add other customization mods:

    body.bbPress #sidebar {display:none;}
    body.bbPress .post {width:100%;}

    It will remove the sidebar and make your forum 100% width.

     

    Cheers!

    spence

    @kslad

    Participant

    Thanks Spence,

    I’ll give this a go as soon as our website comes back up. Our host is having some issues.
    I’ll report back and let you know how it goes.

    I appreciate your efforts.

    @lynq

    Participant

    Grumble… yea I thought that would work :p

    @kslad

    Participant

    Thanks to both of you for your replies.
    It did work!

    Lynq, sorry for doubting your answer. =(

    @gatoresg

    Participant

    Tried this and got rid of side bar but it wont go full width 🙁

    http://www.evilsourcegaming.com/forums/

    any help?

    @labsecrets

    Participant

    #GatorESG,

    for your theme, you need to use this instead (your content is contained in a differently named div:

    body.bbPress #sidebar {display:none;}

    body.bbPress #main {width: 100%;}

    Cheers!

    spence

    @qaisjp

    Participant

    Tried this and it didn’t work, http://stickydestroyer.com/forum/
    Help, please?

    @qaisjp

    Participant

    BUMP!

    @adorward

    Participant

    Hey,
    i’ve read this post and was wondering what file i put this in:
    body.bbPress #sidebar {display:none;}
    body.bbPress .post {width:100%;}

    http://youniversityhub.com
    http://youniversityhub.com/forums1

    Thanks.
    Alex

    @labzip

    Participant

    Hi Alex,
    you would put that in the highest-ranking css style sheet of your theme or child theme, and be sure it goes at the bottom to ensure it takes precedence.

    In your case, since you are using the parent NewsPro theme, you would add it to the bottom of the style.css stylesheet 😉

    Cheers!
    spence

    @adorward

    Participant

    Hey Spence.
    I actually did that but nothing happened. I will keep changes so you can see the page again.
    Any ideas?
    Thanks for the support!

    This is in the Newspro style.css sheet.
    “…….
    .PrimaryLeft .featuredPost p {
    width:160px;
    }
    #wrapper .featuredPost {
    position:relative;
    }

    body.bbPress #sidebar {display:none;}
    body.bbPress .post {width:100%;}

    @labzip

    Participant

    Try adding “!important” to each attribute…

    Like…”:none!important;”

    @adorward

    Participant

    No dice.

    “body.bbPress #sidebar {display:none!important;}
    body.bbPress .post {width:100%!important;}”

    Any other ideas?
    Thanks! Appreciate the help.

    @abberz96

    Participant

    Did you set your page to fullwidth

    @adorward

    Participant

    Doesn’t the line below suffice in the stylesheet or is there something else i need to do?

    “body.bbPress .post {width:100%!important;}”

    @abberz96

    Participant

    It should but then again some themes aren’t compatible with bbpress what I do is I use custom pages with the shortcodes that way I know it displays right

    @jaredatch

    Member

    You should be resetting the width on #container, not .post.

    @adorward

    Participant

    That didn’t work either.
    Any other ideas? Thanks guys.

    @adorward

    Participant

    The sidebar is still showing up so maybe #sidebar could be wrong?

    @adorward

    Participant

    Anybody else have any ideas??

    @starship-trooper

    Participant

    Use the “Widget Logic” PlugIn and put !is_bbpress() into the respective field of your widget(s).

    You have to do it for all widgets though …

    Best regards

Viewing 25 replies - 1 through 25 (of 25 total)
  • You must be logged in to reply to this topic.
Skip to toolbar