public
Last active

Customize the search form on your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
//* Do NOT include the opening php tag
 
//* Customize search form input box text
add_filter( 'genesis_search_text', 'custom_search_text' );
function custom_search_text($text) {
return esc_attr( 'Search my blog...' );
}
 
//* Customize search form input button text
add_filter( 'genesis_search_button_text', 'custom_search_button_text' );
function custom_search_button_text($text) {
return esc_attr( 'Go' );
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.