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 12 replies - 1 through 12 (of 12 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!

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.