Forums

Search form just reloads page (1 post)

  1. rjpinney
    Member
    Posted 3 months ago #

    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>

Reply

You must log in to post.

About this Topic

Tags