Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issues Removing the Sidebar


  • Kslad
    Participant

    @kslad

    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

    @lynq

    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

    @kslad

    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

    @labsecrets

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


    Kslad
    Participant

    @kslad

    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

    @labsecrets

    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

    @kslad

    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

    @lynq

    Grumble… yea I thought that would work :p


    Kslad
    Participant

    @kslad

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

    Lynq, sorry for doubting your answer. =(


    GatorESG
    Participant

    @gatoresg

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

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

    any help?


    LabSecrets
    Participant

    @labsecrets

    #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

    @qaisjp

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


    qaisjp
    Participant

    @qaisjp

    BUMP!


    ADorward
    Participant

    @adorward

    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

    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

    @adorward

    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%;}

    Try adding “!important” to each attribute…

    Like…”:none!important;”


    ADorward
    Participant

    @adorward

    No dice.

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

    Any other ideas?
    Thanks! Appreciate the help.


    Abberz
    Participant

    @abberz96

    Did you set your page to fullwidth


    ADorward
    Participant

    @adorward

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

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


    Abberz
    Participant

    @abberz96

    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


    Jared Atchison
    Moderator

    @jaredatch

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


    ADorward
    Participant

    @adorward

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


    ADorward
    Participant

    @adorward

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


    ADorward
    Participant

    @adorward

    Anybody else have any ideas??


    Peter A. Gebhardt
    Participant

    @starship-trooper

    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.