diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index 776f06a252..c1c5281743 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -310,6 +310,20 @@ function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) { } add_filter( 'walker_nav_menu_start_el', 'twentyfifteen_nav_description', 10, 4 ); +/** + * Add a `screen-reader-text` class to the search form's submit button + * + * @since Twenty Fifteen 1.0 + * + * @param string $html Search form HTML + * + * @return string Modified search form HTML + */ +function twentyfifteen_search_form_modify( $html ) { + return str_replace( 'class="search-submit"', 'class="search-submit screen-reader-text"', $html ); +} +add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' ); + /** * Implement the Custom Header feature. * diff --git a/src/wp-content/themes/twentyfifteen/style.css b/src/wp-content/themes/twentyfifteen/style.css index d380f5f55e..c81c6e8bc6 100644 --- a/src/wp-content/themes/twentyfifteen/style.css +++ b/src/wp-content/themes/twentyfifteen/style.css @@ -596,10 +596,6 @@ textarea { bottom: 0; } -.search-form input[type="submit"] { - display: none; -} - /** * 6.0 Navigations