-
Author
-
October 29, 2018 at 19:42 #212376osacommsParticipant
Hi Support,
I need to confirm a few things:
- How do I change the profile menu settings (Articles, Profile, Orders etc), I need to change what appears on there
- I need to remove the next friend menu that slides in from the left and right, showing what friend comes next.
- I cannot access permalink + what is the link to generalise settings, i need to put the Settings menu in top bar.
Thanks,
Olu
October 30, 2018 at 16:00 #212418RaduModeratorHi,
1. You can change the order using the next 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 etc represents order
Child theme needs to be installed and activated.
2. Go to wp-admin -> theme options -> buddypress -> Enable member navigation* -> OFF
3. Menus can be managed under wp-admin -> appearance -> menus ->
For KLEO and Buddypress links you need to enable them in screen options to go in WP Admin > Appearance > Menus and open the panel at the very top right of the page titled ‘Screen Options’, check the option “KLEO and Buddypress”
Then from Buddypress menu add the settings link
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 31, 2018 at 19:05 #212493osacommsParticipantI still cant find a way of achieving number 1 above, i would also not only want to change the order, but also to remove some items and change the names of some items. kindly assist.
November 1, 2018 at 15:29 #212600RaduModeratorHi,
There you need to have the kleo child theme installed and then to paste that code into functions.php file from wp-content/themes/kleo-child/functions.php
Also you can remove some items using the next snippet
Using 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);
There it’s nothing that it can be changed like regular wp menu and that can be done using snippets.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 1, 2018 at 19:48 #212656osacommsParticipantAfter adding the said code, I refreshed the page, but I can still see orders icon, i used:
// Remove profile tabs
function bp_remove_profile_tabs() {
global $bp;
unset($bp->bp_nav[‘orders’]);
}
add_action(‘bp_init’, ‘bp_remove_profile_tabs’, 9999);Do I need to activate child theme after uploading this onto functions?
November 2, 2018 at 15:13 #212697RaduModeratorSure, if the child theme isn’t activated the code will not take effect, anyway the order tab can be removed from wp-admin -> theme options -> woocommerce -> Manage account in Buddypress* -> OFF
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.