SHARE
TWEET

WordPress Search Form - Page

a guest Oct 26th, 2011 369 Never
  1. <form method="get" id="searchform" class="clearfix" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  2.         <input type="text" class="field" name="s" id="s" value="Search" onblur="if (this.value == ''){this.value = 'Search'; }" onfocus="if (this.value == 'Search') {this.value = ''; }" />
  3.         <input type="submit" class="submit" value="Submit" />
  4.         <input type="hidden" name="post_type" value="page" />
  5. </form>
  6.  
RAW Paste Data
Top