Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigsimps/b7312e95718e980458c1 to your computer and use it in GitHub Desktop.
Save craigsimps/b7312e95718e980458c1 to your computer and use it in GitHub Desktop.
Remove the screen reader text class from the search form. Genesis 2.2.
<?php
add_filter( 'genesis_search_form', 'prefix_unhide_search_label' );
function prefix_unhide_search_label( $markup ) {
return str_replace( ' screen-reader-text', '', $markup );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment