-
Author
-
January 6, 2016 at 16:15 #96646CandromParticipant
Hello,
I have trouble reordering BuddyPress Profile Menu Items and Items in the top-right drop-down profile menu
I thought that these items are “buddypress nav tabs”, so I did add custom code to functions.php file, similar to this:
function my_change_profile_nav_order(){
global $bp;
$bp->bp_nav[‘profile’][‘position’] = 10;
but this doesnt seem to do anything.
January 6, 2016 at 16:57 #96659sharmstrModeratorIt works. You’re probably just not using the correct action which should be init.
COPY CODEfunction my_change_profile_tab_order() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['forums']['position'] = 15; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['friends']['position'] = 30; $bp->bp_nav['groups']['position'] = 40; $bp->bp_nav['messages']['position'] = 60; $bp->bp_nav['settings']['position'] = 70; } add_action( 'init', 'my_change_profile_tab_order', 999 );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.January 6, 2016 at 17:06 #96663CandromParticipantI copy & pasted your exact code to my child theme functions.php, doesn’t work 🙁
January 6, 2016 at 17:32 #96667sharmstrModeratorWorks on both of my sites. Maybe you have a plugin overriding it?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.