In the file header.php
I have a search form that sends me to URLs like localhost/?q=...
but, since I have a front-page.php
file, it does not work although in the WP theme I have a file called search.php
that is correct. What would be the best thing to do?
I am working on an _s
-based theme.
Code
<form target="" class="search">
<input type="search" name="q" placeholder="Caută..." />
<button type="submit"></button>
</form>