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:
- Go to BuddyBoss > Theme Options
- Under Custom Codes, enable CSS
- Append the following:
body:not(.logged-in) body .buddypress-wrap .subnav-filters .component-filters select,
body .buddypress-wrap .subnav-filters .last select { display: none; }- Save changes.
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: