WordPress: Customize search form input box text (Genesis Framework)

<?php add_filter( 'genesis_search_text', 'sp_search_text' ); function sp_search_text( $text ) { return esc_attr( 'Search…' ); } ?>
Simply paste this code snippet in the functions.php file of your (child) theme (without the php tags).

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.