How to make search work with front-page.php?


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>
silviubogan 3 months 2020-11-21T15:10:23-05:00 0 Answers 16 views 0

Leave an answer