1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Member’s Count in a Group for Logged-out Users

Hide the Member’s Count in a Group for Logged-out Users

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:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following:
body:not(.logged-in) #members-groups-li .count { display: none; }
  1. Save changes.

Note: Any modifications are considered as custom work already. Know more about our Support policy here: https://www.bb-backup-hz4.developbb.dev/support-policy/

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:

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.