Created
October 9, 2014 16:02
-
-
Save joeyz/8b9dbe140bde7ed40f4f to your computer and use it in GitHub Desktop.
Search form for Custom Post Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> | |
<div class="row"> | |
<div class="large-12 columns"> | |
<div class="row collapse"> | |
<div class="small-10 columns"> | |
<input type="text" name="s" id="s" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" placeholder="Type event keywords here ..."/> | |
</div> | |
<div class="small-2 columns"> | |
<input type="hidden" name="post_type" value="events" /> | |
<input type="submit" id="searchsubmit" value="Search Events" class="button [secondary success ] postfix"/> | |
</div> | |
</div> | |
</div> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment