-
Author
-
July 6, 2016 at 15:24 #128218zuesterParticipant
Hi there,
I have searched a little online for some way to change the Profile Menu order but can’t seem to find anything.
We would like to change to the of the tabs, example:
Activity – Notifications – Messages – Media – Send Invites – Friends – Groups – Forum – Profile – Settings
Attachments:
You must be logged in to view attached files.July 6, 2016 at 19:20 #128265RaduModeratorHi,
You can change order with this function
COPY CODEfunction my_change_profile_tab_order() { global $bp; $bp->bp_nav['settings']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['friends']['position'] = 30; $bp->bp_nav['groups']['position'] = 40; $bp->bp_nav['blogs']['position'] = 50; $bp->bp_nav['messages']['position'] = 60; $bp->bp_nav['profile']['position'] = 70; } add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
The function will be added to wp-content/themes/kleo-child/functions.php
10,20,30,40,50 etcc represents order
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 7, 2016 at 10:42 #128361zuesterParticipantHi there and thanks for this!
It seems to be working but I can’t get the Media to move?
COPY CODE$bp->bp_nav['media']['position'] = 10; $bp->bp_nav['media-personal']['position'] = 10;
I tried both hoping it would be one of them, but no luck.
July 7, 2016 at 16:43 #128403RaduModeratorHi,
For the media use this separate function
COPY CODEadd_action('bp_init','change_media_tab_position', 12); function change_media_tab_position(){ global $bp; if( isset ($bp->bp_nav['media'])){ $bp->bp_nav['media']['position'] = 70; } }
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionJuly 7, 2016 at 16:56 #128405zuesterParticipantPerfect Thanks!
Now one last thing regarding the order, I have my notifications set up on position 30, but for some reason the “Orders” keep taking the place, how could we move “Orders” out to say position 100 or 110?
Thanks again!
July 7, 2016 at 16:59 #128406zuesterParticipantI got it thanks, ๐ was a typo on my side in the code section.
Thanks again Radu!
July 7, 2016 at 17:09 #128408RaduModeratorGreat ๐
Have a nice week
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 7, 2016 at 17:09 #128409RaduModeratorPlease donโt forget to rate us 5 stars at themeforest if you have time and also will be useful for us and for rest of the users if you will leave a short review about the customer support service.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.