I tried to custom this cute search bar for my site but when I click on “submit” to start research, the “?s=” ends to be added at the end
of the url of the current page (and not at the end of the blog directory), while the original wordpress theme search box, whatever page you’re visting, when I click on it, starts a correct research. Any fixes?
Obviously when i click on “submit” when I’m not on the page, the search doen’t start.
It’s because the form
action
is empty.Set it to the base url of your website, and it will cause the form to go there: