Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change landing page for Groups to Member List

  • @katepaneros

    Member

    Hi all

    I’d like the default landing page for each group to be the list of members, not the Home tab. I’d actually like to remove the Home tab if possible, for the public side of the site (i.e. member is not logged in). Hoping this is a simple fix!

    Also, when viewing a member page (while not logged in to the site), I’d like to only show the Profile tab, and have the Groups and Forums tabs hidden from the public (but logged in users can see these tabs).

    Are these both do-able?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @djpaul

    Keymaster

    In your bp-custom.php file — https://codex.buddypress.org/extending-buddypress/bp-custom-php/ — add the following:

    define(‘BP_GROUPS_DEFAULT_EXTENSION’, ‘members’);

    @katepaneros

    Member

    Thanks Paul – it didn’t work at first but after some more searching I found this, which worked:

    
    function bbg_change_group_extension( $e ) {
    return 'members';
    }
    add_filter( 'bp_groups_default_extension', 'bbg_change_group_extension' );

    Now, can I get rid of the Home tab?

    @modemlooper

    Moderator
    
    function my_bp_groups_hide_home_tab() {
    global $bp;
    $bp->bp_options_nav = false;
    }
    add_action('wp', 'my_bp_groups_hide_home_tab');
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change landing page for Groups to Member List’ is closed to new replies.
Skip to toolbar