I would like to hide the member count from the groups.
I looked around for some solution and found this code in bp-custom.php as mentioned in BuddyPress support but it doesn’t work:
function john_gettext( $translated, $original_text, $domain ) {
if ( ‘buddypress’ !== $domain )
return $translated;switch ( $original_text ) {
case ‘All Members <span>%s</span>’:
return ‘All Members’;default:
return $translated;
}
}
add_filter( ‘gettext’, ‘john_gettext’, 20, 3 );I also tried adding this code in css but it doesn’t work:
li#members-all span , li#activity-all span {
display: none!important;
}Anyways I can hide the member counts?
Hello,
I have checked the site and it is not showing me the group’s members count. Please check the following screenshot:
https://www.awesomescreenshot.com/image/16755035?key=e6f43863e6e0dc21c8d5e673eb7d590a
Please try after clearing your browser cache or try it in incognito mode.
Regards
RaviIts not there inside the individual group but the count is visible in the groups tab.
Like here: https://prnt.sc/1zo5v7c
The topic ‘ [Resolved] Hide members count in buddypress groups’ is closed to new replies.