Created
February 5, 2014 15:12
-
-
Save wcodex/8825693 to your computer and use it in GitHub Desktop.
Custom WordPress search form using bootstrap 3.0
This file contains hidden or 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 class="navbar-form" role="search" action="<?php echo site_url('/'); ?>" method="get" > | |
<div class="input-group"> | |
<input type="text" class="form-control" placeholder="Search" name="s" id="search" value="<?php the_search_query(); ?>"> | |
<div class="input-group-btn"> | |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button> | |
</div> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment