Created
March 19, 2015 15:27
-
-
Save epierpont/fc52e75c450a2973f5ae to your computer and use it in GitHub Desktop.
WP - Search form with font awesome
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
nav form .search-field { | |
border: 0; | |
} | |
nav form .search-submit { | |
font-family: 'FontAwesome'; | |
border: 0; | |
} |
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
// must include font awesome for search icon http://fortawesome.github.io/Font-Awesome/ | |
<form role="search" method="get" class="search-form" action="<?php echo home_url(); ?>"> | |
<input type="search" class="search-field" name="s" value="looking for something"> | |
<input type="submit" class="search-submit" value=""> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment