[Resolved] Remove Sidebar B not A
-
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')toget_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
-
I this a stupid question I’m asking? Can somebody please direct me into the right directions
Thank you very much.
@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.
https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/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]
@mgrmn thanks for posting back re positive result 🙂
Marking this topic as resolved.
- The topic ‘[Resolved] Remove Sidebar B not A’ is closed to new replies.