Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove Sidebar B not A

  • Avatar of mgrmn
    mgrmn
    Participant

    @mgrmn

    Trying to remove just one sidebar, when trying to set the page template in wp page attributes BP keeps on showing those sidebars,

    Can anybody please tell me how to get rid of sidebar B not A
    See image http://postimg.org/image/i20ovb6ep/

    Templates uses this for sidebars`if( ( $vlt_layout_order == ‘CAB’ || $vlt_layout_order == ‘BCA’)) {
    get_sidebar(‘a’);
    }
    if( ( $vlt_layout_order == ‘CAB’ || $vlt_layout_order == ‘ACB’ || $vlt_layout_order == ‘CBA’)) {
    get_sidebar(‘b’);
    }
    if( ( $vlt_layout_order == ‘CBA’) ) {
    get_sidebar(‘a’);
    }`

    tried editing /var/www/wp-content/plugins/buddypress/bp-themes/bp-default/members/index.php and single/home.php by changing get_sidebar('buddypress') to get_sidebar('b'); for example and even removed it completely, but no change at all? which files should i edit to get desired result.

    WP 3.5.2 / BP 1.7.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of mgrmn
    mgrmn
    Participant

    @mgrmn

    I this a stupid question I’m asking? Can somebody please direct me into the right directions

    Thank you very much.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @mgrmn please do not bump your post when it’s been less than a day in queue. Know that we’re all volunteers here living in different time zones.

    You need to find out whether your theme has a template with two column layout. If so, copy source code over to a new file named buddypress.php which you will upload to theme folder in server. Your theme author should be able to help you with this.

    http://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/

    Avatar of mgrmn
    mgrmn
    Participant

    @mgrmn

    Yes thank you, it actually does. Thank you very much that worked. Not a PHP pro, but I can manage it from here i guess.

    That did the trick for me [resolved]

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @mgrmn thanks for posting back re positive result :-)
    Marking this topic as resolved.

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

You must be logged in to reply to this topic.