Info
- 4 posts
- 4 voices
- Started 2 years ago by fdsa4
- Latest reply from zengyike
- This topic is not resolved
How to disable "search" function
-
- Posted 2 years ago #
How to disable "search" function for end user or all groups?
-
- Posted 2 years ago #
Depending on your theme, you should look into the header.php file. In there you'll see something like:
<div class="search"><?php search_form(); ?></div>
Remove this to get rid of the search form. You can also do this through css (recommended for upgrading) by setting the display: none; property.
-
- Posted 2 years ago #
To be clear, that just removes the search box, or hides it from display if you choose to do it with CSS
display:none;. People could still access the search function directly by accessing the URLhttp://www.example.com/bbpress/search.php?q=keyword. If you just want to reduce visual clutter, remove the code from your template as suggested by hatter. -
- Posted 2 years ago #
i mean disable but not "unshow"
-
You must log in to post.