Introduction
By default, BuddyBoss does not provide an option to hide the Member's Count in groups for users who are not logged in. Using a simple CSS snippet, you can hide the count from logged-out users, which can help maintain privacy and create a cleaner group display.
Custom Workaround
Follow the steps below to hide the Member's Count for logged-out users:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following:
body:not(.logged-in) #members-groups-li .count { display: none; }- Save changes.
Troubleshooting and FAQs
Q: Will this hide the group members completely?
A: No. Only the member count is hidden. The members themselves are still visible.
Q: The count is still visible after adding the CSS. What should I do?
A: Clear your site cache and browser cache. If the code still doesn’t work, submit a ticket to the support team for assistance.
Q: Can I hide the member count only on specific groups?
A: Yes. You can target specific groups by using their unique group ID instead of #members-groups-li.
Q: Will this affect logged-in users?
A: No. This CSS only hides the member count for users who are not logged in.
Q: Does this work on mobile devices as well?
A: Yes, the snippet applies to all screen sizes.
Screenshots
Without Code:
With Code: