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 );