Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide All Members Tag

  • @mlao

    Participant

    Hi
    How I can hide this all members tag…I don’t want members to know how many members my community has!

Viewing 6 replies - 1 through 6 (of 6 total)
  • @danbp

    Participant

    hi @mlao,

    we let the tab All members where it is and remove only the count.

    function mlao_gettext( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  
               return $translated;
    
        switch ( $original_text ) {
            case 'All Members %s':
                return 'All Members';
    
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'mlao_gettext', 20, 3 );

    Add this to bp-custom.php or child-theme functions.php

    @mlao

    Participant

    Thanks…Do I need to change something?

    @mlao

    Participant

    Thanks so much, It Worked!!!!

    @mlao

    Participant

    Ohhh Help!!!

    It took out the count, but when someone click at Members is just take him to the Home-Page and not to members page…

    @danbp

    Participant

    No idea ! The snippet doesn’t change any URL, it only remove the count part of the original text.
    Check your theme or any custom function using a redirection. Sorry, can’t help you for this issue.

    @mlao

    Participant

    CORRECT !! Even if I delete the bp-custom.php, the issue is still there… Hmm strange!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.