Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove sidebar from members and site directory

  • Avatar of myladeybugg
    myladeybugg
    Participant

    @myladeybugg

    I am running WP multisite with buddypress using a child theme of bp-default. I would like to remove the sidebar from all buddypress pages (activity, groups, members, sites, search, etc).

    I have been able to find the code and remove it from activity and groups, but cannot seem to find the file for the members or site directory and the search page.

    Anyone know where to find the files?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Hi,

    Didn’t understand how you were be able to find how to remove the sidebar on activity and group and not on the other pages, but here is how to remove it on what you’re asking for now

    bp-default/members/index.php > contains the call to the sidebar

    Copy index into the child and remove the line 92: get_sidebar( ‘buddypress’ );
    The same in members/single/home.php

    Similar for search. bp-default/search.php (copy to child) and remove get_sidebar at the end of the file.

    When copy/pasting, remember that the child should reflect exatly the same directory as the original theme

    Avatar of myladeybugg
    myladeybugg
    Participant

    @myladeybugg

    Thank you! I was able to find them late last night. Just silly mistake on my part.

    Avatar of mgrmn
    mgrmn
    Participant

    @mgrmn

    Wondering if i missed something, removed sidebar from these pages, but they are stil showing

    www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
    www/wp-content/plugins/buddypress/bp-themes/bp-default/members/index.php

    BP 1.7
    wp 3.5.2

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

You must be logged in to reply to this topic.