Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Members Tab on group pages and link

  • @locustfist

    Participant

    I want to remove the ‘members’ tab on the group pages. What file do I edit to comment it out or remove?

    I also want to get rid of the ‘member (count)’ on the group list page.

    Our site is for display of groups only, we don’t want people joining the site.

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

    Participant

    @locustfist To remove “Members” tab on Group Pages, per @boonebgorges BP 1.5 update: add the following to your theme’s functions.php
    `function locustfist_remove_group_member_tab() {
    bp_core_remove_subnav_item( bp_get_current_group_slug(), ‘members’ );
    }
    add_action( ‘bp_setup_nav’, ‘locustfist_remove_group_member_tab’, 15 );`

    To get rid of the member count of the Group Directory Page
    – download groups-loop.php from here
    – change line #61 from ` / ` to “ thereby removing the member count
    – upload groups-loop.php to your server wp-content/themes/your-theme-folder/groups/groups-loop.php

    @locustfist

    Participant

    @mercime

    your code has ‘locustfist’ in there a couple of times; was that intended?

    @mercime

    Participant

    Sure it was. Good practice to put a your own prefix to your special functions to avoid conflict with other functions which *might* have been named just ‘remove_group_member_tab’.
    If you prefer, you can change ‘locustfist’ to ‘mercime’ :-)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Members Tab on group pages and link’ is closed to new replies.
Skip to toolbar