Use sr-only class on searchform, move label again because of input-group styles

This commit is contained in:
Ben Word
2014-03-30 21:30:08 -05:00
parent 92cb5bc518
commit 2442d7bdf7

View File

@@ -1,6 +1,6 @@
<form role="search" method="get" class="search-form form-inline" action="<?php echo home_url('/'); ?>">
<label class="sr-only"><?php _e('Search for:', 'roots'); ?></label>
<div class="input-group">
<label class="hide"><?php _e('Search for:', 'roots'); ?></label>
<input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php _e('Search', 'roots'); ?> <?php bloginfo('name'); ?>">
<span class="input-group-btn">
<button type="submit" class="search-submit btn btn-default"><?php _e('Search', 'roots'); ?></button>