1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Hide the Search in Forums Directory for Logged-Out Users

Hide the Search in Forums Directory for Logged-Out Users

Introduction

By default, BuddyBoss does not provide an option to hide the search bar in the Forums Directory for logged-out users. Using a simple CSS snippet, you can remove the search bar for visitors who are not logged in, creating a cleaner view and encouraging users to log in to access search functionality.

Custom Workaround

Follow the steps below to hide the Forums Directory search for logged-out users:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following:
body:not(.logged-in) div#forums-dir-search.bs-dir-search.bs-forums-search { display: none; }
  1. Save changes.

Note: Any modifications are considered as custom work already. Know more about our Support policy here: https://buddyboss.com/support-policy/

Troubleshooting and FAQs

Q: Will this hide the search bar for logged-in users?

A: No. This CSS only targets users who are not logged in. Logged-in users will still see the search bar.

Q: The search bar is still visible. What should I do?

A: Clear your site cache and browser cache. If the search bar still appears, submit a ticket to the support team for assistance.

Q: Does this affect the functionality of the forums search for logged-out users?

A: No. This only hides the visual search bar. Logged-out users simply will not see it.

Q: Can I hide the search bar only on specific forum pages?

A: Yes. You can modify the CSS to include the page ID of specific forum pages if needed.

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 for validation purposes and should be left unchanged.
This field is hidden when viewing the form

To speak to our Agency consultant, fill in the form found at our Contact Page.