[Resolved] How to edit tabs on Groups page and change default first page
-
Hi,
I don’t want to show the activity as the default when you go to a groups home page. I would prefer to remove the tab ‘Home’ and have ‘Profile’ as the first tab.
I did something similar for the Profile page using the code below.
define('BP_DEFAULT_COMPONENT', 'profile' ); function bpfr_hide_top_nav() { if( bp_is_active('xprofile' ) ) { bp_core_remove_nav_item( 'activity' ); } } add_action( 'bp_ready', 'bpfr_hide_top_nav' );
Below is code I have tried using for the Groups page but it does not have any effect:
function bpgroups_hide_home_nav() { bp_core_remove_nav_item( 'home' ); } add_action ( 'bp_group_header_actions', 'bpgroups_hide_home_nav' ); function bpgroups_forum_first_tab() { global $bp; $bp->bp_options_nav['groups']['home']['position'] = '150'; } add_action('wp', 'bpgroups_forum_first_tab');
Can anyone help me achieve this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Resolved] How to edit tabs on Groups page and change default first page’ is closed to new replies.