Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable "search" function

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.


    chrishajer
    Participant

    @chrishajer

    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 URL http://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.

    i mean disable but not “unshow”

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar