Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Last active December 11, 2015 01:18
Show Gist options
  • Save GaryJones/4521909 to your computer and use it in GitHub Desktop.
Save GaryJones/4521909 to your computer and use it in GitHub Desktop.
Customize Genesis search input and button.
<?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