Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: customizing buddypress profile page default tab and item-nav order


Roger Coathup
Participant

@rogercoathup

Ok… I cut and pasted the code, and that had introduced some control characters that messed everything up.

However, the routine to change the tab order is not working for me… I went for the following:

function ka_change_profile_tab_order() {
global $bp;

$bp->bp_nav = 10;
$bp->bp_nav = 20;
$bp->bp_nav = 30;
$bp->bp_nav = 50;
$bp->bp_nav = 60;
$bp->bp_nav = 70;
}

add_action( ‘bp_setup_nav’, ‘ka_change_profile_tab_order’, 999 );

But, that results in some strange markup being created:

A new tab is displayed at the start with no content –
[li id=”-personal-li”]
[a id=”user-” href][/a]
[/li]

and the profile and messages tabs are not in the right order. I get the following rendered:

nonsense (see above) – messages – profile – activity – groups – following – settings

Skip to toolbar