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.


<form target="" class="search">
    <input type="search" name="q" placeholder="Caută..." />
    <button type="submit"></button>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.