Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide All Members Tag

  • 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
    Moderator

    @danbp

    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

    Thanks…Do I need to change something?

    Thanks so much, It Worked!!!!

    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
    Moderator

    @danbp

    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.

    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.
Skip to toolbar