Skip to content

Instantly share code, notes, and snippets.

@cjkoepke
Created February 28, 2015 16:30
Show Gist options
  • Save cjkoepke/adef0f9d1f8d6e7a04e3 to your computer and use it in GitHub Desktop.
Save cjkoepke/adef0f9d1f8d6e7a04e3 to your computer and use it in GitHub Desktop.
Modify the search placeholder text for the Genesis Framework
/**
* Modify the placeholder text of the default search form in Genesis.
* @author Calvin Makes
* @link http://www.calvinmakes.com/modify-placeholder-text-genesis-search-form/
*/
//* Return our new placeholder text (replace CHILD_THEME_TEXT_DOMAIN with your child theme slug).
add_filter( 'genesis_search_text', 'cm_search_placeholder' );
function cm_search_placeholder() {
return esc_attr__('New Placeholder Text', CHILD_THEME_TEXT_DOMAIN );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment