This topic has 5 replies, 2 voices, and was last updated 6 years by Radu.

  • Author
  • #212376
     osacomms
    Participant

    Hi Support,

    I need to confirm a few things:

    1. How do I change the profile menu settings (Articles, Profile, Orders etc), I need to change what appears on there
    2. I need to remove the next friend menu that slides in from the left and right, showing what friend comes next.
    3. I cannot access permalink + what is the link to generalise settings, i need to put the Settings menu in top bar.

    Thanks,

    Olu

     

    #212418
     Radu
    Moderator

    Hi,

    1. You can change the order using the next function

    COPY CODE
    
    function 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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #212493
     osacomms
    Participant

    I 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.

    #212600
     Radu
    Moderator

    Hi,

    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 CODE
    
    
    function 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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #212656
     osacomms
    Participant

    After 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?

    #212697
     Radu
    Moderator

    Sure, 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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?