Search form just reloads page
-
I’m having trouble getting a search form to work. I have altered the searchform.php code to fit with new styling which I am sure is where the problem has come in. The code for searchform.php is below, any pointers appreciated. Thanks.
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> <input id="searchfield" type="text" placeholder="Looking for something in particular?" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /> <input id="searchsubmit" type="submit" value="Go" /> </form>
- The topic ‘Search form just reloads page’ is closed to new replies.