Created
February 28, 2015 16:30
-
-
Save cjkoepke/adef0f9d1f8d6e7a04e3 to your computer and use it in GitHub Desktop.
Modify the search placeholder text for the Genesis Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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