-
Author
-
May 25, 2018 at 18:45 #199011napadloParticipant
how do I change the order or hide some items in the right way?
Attachments:
You must be logged in to view attached files.May 25, 2018 at 20:07 #199031RaduModeratorHi,
You can change the order using the next functionCOPY 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 etc represents order
Child theme needs to be installed and activated.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 29, 2018 at 16:46 #199278RaduModeratorUsing this you can remove it.
COPY CODE// Remove profile tabs function bp_remove_profile_tabs() { global $bp; unset($bp->bp_nav['media']); } add_action('bp_init', 'bp_remove_profile_tabs', 9999);
using this you can rename them
COPY CODEfunction mb_profile_menu_tabs(){ global $bp; $bp->bp_nav['groups']['name'] = 'Cities'; } add_action('bp_setup_nav', 'mb_profile_menu_tabs', 201);
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 4, 2018 at 12:51 #199848napadloParticipantPerfect work super it works. Thank you, I wish a beautiful day.
June 4, 2018 at 19:38 #199898RaduModeratorThank you!
Have a nice week
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘General questions’ is closed to new topics and replies.