Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

WordPress Search Form - Page

By: a guest on Oct 26th, 2011  |  syntax: None  |  size: 0.40 KB  |  views: 267  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.