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

Hide the Member Filters in the Member’s Directory for Logged-out Users

Introduction

By default, BuddyBoss does not provide an option to hide Member Filters for users who are not logged in. Using a simple CSS snippet, you can hide the filter dropdowns on the Members directory page for logged-out users, which helps maintain privacy and simplifies the interface.

Custom Workaround

Follow the steps below to hide Member Filters for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following:
body:not(.logged-in) body .buddypress-wrap .subnav-filters .component-filters select, 

body .buddypress-wrap .subnav-filters .last select { 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 Members page entirely?

A: No. Only the filter dropdowns are hidden. The member list remains visible.

Q: The filters are still visible after adding the CSS. What should I do?

A: Clear your site cache and browser cache. If the code is still not working, submit a ticket to the support team for assistance.

Q: Can I hide specific filter options instead of the entire filter?

A: No. This snippet hides the entire filter. Hiding specific options requires additional custom development.

Q: Will this affect mobile users?

A: Yes, this CSS applies to all screen sizes. For mobile-specific behavior, media queries would be required.

Q: Can I show filters only to logged-in users?

A: Yes, the CSS snippet above already hides filters specifically for logged-out users. Logged-in users will still see them.

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.