Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Last active January 18, 2016 12:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rickrduncan/fe7776b77aff6a673af7 to your computer and use it in GitHub Desktop.
Change default text in a Genesis Framework search box: http://rickrduncan.com/wordpress/customize-genesis-search-form
<?php
//* Do NOT include the opening php tag above
//* Customize search form input box text of Genesis child themes
add_filter( 'genesis_search_text', 'b3m_genesis_search_text' );
function b3m_genesis_search_text( $text ) {
return esc_attr( 'Search my blog...' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment