This topic has 3 replies, 2 voices, and was last updated 10 years by sharmstr.

  • Author
  • #12980
     Jonbie
    Participant

    I am trying to change the order of the menu items in the buddypress menu.

    Unfortunately i have had no look adding code to the themes functions.php and i am nearly out of time.

    Any help at this late stage would be much appreciated.

    thanks You

    #12981
     sharmstr
    Moderator

    Put this in functions.php and edit positions as necessary.

    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 );
    
    

    I find it hard to believe that you couldnt find this solution since there’s about a million pages returned by google when searching for it. So, my guess is you tried it and it didnt work. If that’s the case, then make sure that the quotes are actual single quotes and not fancy quotes and two, be patient. The change wont show up right away. Just hit F5 a few times.

    I just added the above code and it worked without issue.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #13162
     Jonbie
    Participant

    Thanks for the advise, and you were right, i had tried other snippets with no luck, your code and advise worked great for me.

    Thanks for taking the time to help.

    Jonbie

    #13163
     sharmstr
    Moderator

    Anytime my friend.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

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

Log in with your credentials

Forgot your details?