This topic has 7 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #128218
     zuester
    Participant

    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.
    #128265
     Radu
    Moderator

    Hi,

    You can change order with this 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 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 solution
    #128361
     zuester
    Participant

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

    #128403
     Radu
    Moderator

    Hi,

    For the media use this separate function

    COPY CODE
    
    add_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 solution
    #128405
     zuester
    Participant

    Perfect 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!

    #128406
     zuester
    Participant

    I got it thanks, ๐Ÿ™‚ was a typo on my side in the code section.

    Thanks again Radu!

    #128408
     Radu
    Moderator

    Great ๐Ÿ™‚

    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 solution
    #128409
     Radu
    Moderator

    Please 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
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?