Re-Arrange the Group and Profile Navigation Menu
Add the following to your functions.php or bp-custom.php file:
function tricks_change_bp_tag_position() { global $bp; //for groups and other component like links etc $bp->bp_options_nav['groups']['activity']['position'] = 10; $bp->bp_options_nav['groups']['forum']['position'] = 40; $bp->bp_options_nav['groups']['gallery']['position'] = 30;//change it to see the effect $bp->bp_options_nav['groups']['admin']['position'] = 120; $bp->bp_options_nav['groups']['members']['position'] = 20; $bp->bp_options_nav['groups']['send-invites']['position'] = 11; /*function tricks_change_bp_tag_position() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['forum']['position'] = 20; $bp->bp_nav['gallery']['position'] = 30; $bp->bp_nav['posts']['position'] = 40; $bp->bp_nav['activity']['position'] = 50; $bp->bp_nav['blogs']['position'] = 60; $bp->bp_nav['friends']['position'] = 70; $bp->bp_nav['messages']['position'] = 80; $bp->bp_nav['groups']['position'] = 90; $bp->bp_nav['settings']['position'] = 100; } add_action( 'bp_init', 'tricks_change_bp_tag_position', 999 ); } add_action( 'wp_head', 'tricks_change_bp_tag_position',9 );
That’s it!
Looking for quality BuddyPress hosting? We will guide you through all the available hosting options and help you find the best webhost for your next BuddyPress project!
It seems great, nevertheless it would be nice if you start adding some sample screenshots to your posts from now on.
Thanks for sharing these tips!
Hi Juanma,
Quick tips sometimes do not have screenshots. It also depends on the trick submitter that sends in the trick. Most of the time I’ll try to include screenshots, but since this trick was not written by me, I can’t test or create screenshots for all tricks.
But feel free to send in your BuddyPress tricks, it’s very much appreciated!
maybe a bit more of a description for n00bs like me. I’m not getting what this does.
Hello sir,
After i change some setting / themes i got error while i test buddypress site in my localhost, please give me solution how to remove that error.
I got the error now buddypress is not working.
please guide me
Fatal error: Cannot redeclare bp_dtheme_ajax_querystring() (previously declared in C:\Program Files\VertrigoServ\www\buddy\wp-content\plugins\buddypress\bp-themes\bp-default\_inc\ajax.php:20) in C:\Program Files\VertrigoServ\www\buddy\wp-content\themes\dusk\_inc\ajax.php on line 63
please guide me.
Thanks
Is there a way to add a class and title attribute to a profile or group nav item by using this same method?
Hey thanks for putting this up!
Reply
I, however, don’t understand how to put it into the functions.php code. When i tried i got an error saying “unexpected $end on………../functions.php line 547″ (
What about the tabs in the secondary menu?
Like under “Activity” the ones that correspond to:
Personal
Friends
Groups
Favorites
How do we change the labels for those !??!?!?
Thanks
I would like to also know how to move say some top level menus (like Following or Followers) to a sub level menu (like under a Social menu from the top = where social maybe is just the Activity page). Is that possible?