Yea so on my wordpress theme I’ve put together…
When you click the search button (with the search field empty) it takes you to the blog page. I have assigned the index.php as the blog page and made another page and assigned that as the home page.
Can anyone help? Its not a major problem but it is a little glitch I would like to get rid of.
Thanks.
Terry
I also faced the same problem, it is default given by wordpress.
but luckily I found something which helped me.
Add below in “Functions.php”
and then replace below line(line no 15) in search.php
Might be it will help you too
For details read this : Customize empty search wordpress