Skip to content

Instantly share code, notes, and snippets.

@wcodex
Created February 5, 2014 15:12
Show Gist options
  • Save wcodex/8825693 to your computer and use it in GitHub Desktop.
Save wcodex/8825693 to your computer and use it in GitHub Desktop.
Custom WordPress search form using bootstrap 3.0
?>
<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