BuddyDev

Search

"Gallery" position in user menu

  • Participant
    Level: Initiated
    Posts: 10
    Minoo on #3123

    Hello,

    How i can change the position order of the “Gallery” tab in the main buddypress user menu ?

    I try with $bp->bp_nav[‘mediapress’][‘position’] = 20; with the action bp_activity_setup_nav in bp-custom.php but it’s not working.

    Thank you !

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2505
    Ravi on #3124

    Hi Minoo

    Thank you for posting. Please try this code with the action “wp_loaded”

    add_action( "wp_loaded", "change_menu_position" );
    function change_menu_position() {
    
    	if( ! function_exists( 'buddypress' ) ) {
    		return ;
    	}
    
    	$bp = buddypress();
    
    	$bp->bp_nav['mediapress']['position'] = 2;
    }

    Thank You
    Ravi

  • Participant
    Level: Initiated
    Posts: 10
    Minoo on #3131

    Thanks a lot Ravi !

You must be logged in to reply to this topic.

This topic is: not resolved