# Roots search form not showing in sidebar

**URL:** https://discourse.roots.io/t/roots-search-form-not-showing-in-sidebar/1011
**Category:** uncategorized
**Created:** 2014-01-06T13:40:00Z
**Posts:** 1

## Post 1 by @lynchy010 — 2014-01-06T13:40:01Z

If I use the search widget in my sidebar, the default is shown (not `roots/templates/searchform.php`). I should be using the normal search widget right?

The only progress I can make is by commenting out this check in `cleanup.php`:

```
function roots_get_search_form($argument) {

  //if ($argument === '') {
    locate_template('/templates/searchform.php', true, false);
  //}
}
```

Then I get the roots search form AND the WP search form.

What am I missing here?

It doesn’t seem under my control to prevent the caller of `get_search_form` to not show the default as well as the custom one. I can’t even find any call to `get_search_form` which passes an argument anyway, unless the following line in `general-template.php` effects that:

```
$result = apply_filters( 'get_search_form', $form );
```
