Removing Buddypress sidebars
-
I’m working on a theme using roots as a starter theme and am using buddypress 1.8.1 . I have ironed out most problems, but I can’t for the life of me figure out how to remove the buddypress sidebars, I’ve commented out all the get_sidebar template parts I could find in the files and I just can’t understand how the heck the sidebar is still there.
-
hi squared index you don’t mention what type of theme you are creating. if you are creating a child theme so you have to copy all files with the folder which have sidebar from defaul bp-them like activity folder with the index file or other folders and main index file after that simply remove the line
<?php get_sidebar( ‘buddypress’ ); ?>
usually this file locate in the last of index files.
visit on my site http://www.vellamind.com/activity/
i have chage the position of side bar in my theme
Good luck
Not a child theme, just a normal wordpress theme that uses buddypress. I don’t know if I have to do a child theme for it to work.
Do you mean I literally just copy and paste those files into my theme folder?
yes if you are making a child them then you can copy and past or after that you can edit files. if you are making a theme or it is not a child theme so there should’t be any sidebar till then you don’t add the code
I setup a child theme, but I’m having trouble getting the buddypress themes to work. I tried using the “onecolumn-page” template on one of my pages, but it didn’t have any effect, it should have removed the sidebar. Any idea what I could have done wrong?
@squaredindex If you’re using a WordPress theme, not a BP Default child theme, check out BP Theme Compatibility information at
a. https://codex.buddypress.org/theme-development/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
b. https://codex.buddypress.org/theme-development/theme-compatibility-1-7/template-hierarchy/Basically if you want to change ALL the BP pages to have a sidebar or not, then create a new file named buddypress.php and paste in the code of your theme’s file which has a sidebar or a full width layout. Then upload buddypress.php to the root of your theme’s folder in server. For theme compatibility to work, your theme should have the_title and the_content within the WP loop. Read a) above.
If you want to mix-and-match BP pages with full-width and two-column (with sidebar) layouts, read b).
- The topic ‘Removing Buddypress sidebars’ is closed to new replies.