[Resolved] reordering profile tabs code not working
-
Hi,
background: new dev site with latest w/p and BP installed, and using the default BP-friendly Kleo theme by Themeforest.
Q: recommended code for reordering profile tabs not working – is it correct or am I doing it wrong?
I’ve scoured this forum and the i/net for options for this and think I’ve found the correct code, but it doesn’t have any effect! The code I’m using is this:
define(‘BP_DEFAULT_COMPONENT’, ‘profile’ ); function bbg_change_profile_tab_order() { global $bp; $bp->bp_nav[‘profile’][‘position’] = 10; $bp->bp_nav[‘media’][‘position’] = 20; $bp->bp_nav[‘groups’][‘position’] = 30; $bp->bp_nav[‘activity’][‘position’] = 40; $bp->bp_nav[‘notifications’][‘position’] = 50; $bp->bp_nav[‘messages’][‘position’] = 60; $bp->bp_nav[‘friends’][‘position’] = 70; $bp->bp_nav[‘settings’][‘position’] = 80; } add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );
and I’ve tried it in my bp-custom.php and my child theme functions.php file – both no luck.
Is this because it’s out of date? as i understand that BP has recently had a major makeover. Or have I just got it wrong or put it in the wrong file?
All help or guidance much appreciated, as I’m now out of ideas! Thanks.
- The topic ‘[Resolved] reordering profile tabs code not working’ is closed to new replies.