Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Assistive-text added to searchform.php
using BS4 class sr-only for screen reader text.
  • Loading branch information
Emmanuel ARNOUD committed Aug 21, 2018
1 parent 981df70 commit 88c18d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions searchform.php
@@ -1,13 +1,12 @@
<?php
/**
* The template for displaying search forms in Underscores.me
* Customized for Pinegrow ST2
* Removed <label class="assistive-text" for="s"><?php esc_html_e( 'Search', 'st2' ); ?></label>
*/
**/

?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">

<label class="sr-only" for="s"><?php esc_html_e( 'Search', 'st2' ); ?></label>
<div class="input-group">
<input class="field form-control" id="s" name="s" type="text"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'st2' ); ?>" value="<?php the_search_query(); ?>">
Expand Down

0 comments on commit 88c18d8

Please sign in to comment.