Skip to content

Commit

Permalink
Merge pull request #382 from rodrigo-brito/fix-searchform
Browse files Browse the repository at this point in the history
Fix searchform
  • Loading branch information
fdaciuk committed Feb 3, 2016
2 parents f6efece + 011662b commit 1f484f6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
?>

<form method="get" id="searchform" class="form-inline" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<div class="form-group">
<label for="s" class="sr-only"><?php _e( 'Search', 'odin' ); ?></label>
<input type="search" class="form-control" name="s" id="s" value="<?php echo get_search_query(); ?>" />
</div>
<input type="submit" class="btn btn-default" value="<?php esc_attr_e( 'Search', 'odin' ); ?>" />
</form>
<div class="input-group">
<input type="search" class="form-control" name="s" id="s" value="<?php echo get_search_query(); ?>" placeholder="<?php _e( 'Search', 'odin' ); ?>" />
<span class="input-group-btn">
<button type="submit" class="btn btn-default" value="<?php esc_attr_e( 'Search', 'odin' ); ?>">
<i class="glyphicon glyphicon-search"></i>
</button>
</span><!-- /input-group-btn -->
</div><!-- /input-group -->
</form><!-- /searchform -->

0 comments on commit 1f484f6

Please sign in to comment.