1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Members Tab in Groups for Logged-out Users

Hide the Members Tab in Groups for Logged-out Users

Introduction

By default, BuddyBoss does not provide a built-in option to hide the Members tab in groups for logged-out users. Using a small CSS snippet, you can prevent non-logged-in visitors from seeing the Members tab while keeping it visible for logged-in members.

Custom Workaround

Follow the steps below to hide the Members tab for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following code:
body:not(.logged-in) #members-groups-li.bp-groups-tab { 

    display: none; 

}
  1. Save changes.

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

Troubleshooting and FAQs

Q: Will this remove the Members tab for logged-in users as well?

A: No. The tab is hidden only for logged-out users. Logged-in members will still see it.

Q: The Members tab is still visible after adding the CSS. What should I do?

A: Clear your site cache and browser cache. Also check if another custom CSS snippet is overriding this rule.

Q: Does this affect mobile and desktop views?

A: Yes. This CSS applies to all screen sizes.

Q: Can this be reverted easily?

A: Yes. Simply remove the CSS snippet and save changes.


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.