Last active
December 11, 2015 01:18
-
-
Save GaryJones/4521909 to your computer and use it in GitHub Desktop.
Customize Genesis search input and button.
This file contains hidden or 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
<?php | |
add_filter( 'genesis_search_text', 'custom_search_input_text' ); | |
/** | |
* Customize the search form input button text. | |
* | |
* @param string $text Existing input text. | |
* | |
* @return string Amended input text. | |
*/ | |
function custom_search_input_text( $text ) { | |
return 'Search my blog'; | |
} | |
add_filter( 'genesis_search_button_text', 'custom_search_button_text' ); | |
/** | |
* Customize the search form input button text. | |
* | |
* @param string $text Existing button text. | |
* | |
* @return string Amended button text. | |
*/ | |
function custom_search_button_text( $text ) { | |
return 'Go'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment