Advertisement
Guest User

WordPress Search Form - Page

a guest
Oct 26th, 2011
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement