Created
April 2, 2015 00:53
-
-
Save ckunte/984bbaba668199c1f70f to your computer and use it in GitHub Desktop.
Search form (for WordPress)
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 method="get" name="srch" action="<?php bloginfo('home'); ?>/"> | |
<div style="margin:10px 0"> | |
<label style="display:inline"><?php _e('Search › '); ?></label> | |
<input type="text" size="27" value="<?php the_search_query(); ?>" name="s" id="s" /> | |
<input alt="" style="display:none" type="submit" value="search" /> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For search for focus, use the following code: