Customize the Search Form Label

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Here is the code needed to customize the search form label:

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Customize search form label
add_filter( 'genesis_search_form_label', 'sp_search_form_label' );
function sp_search_form_label ( $text ) {
	return esc_attr( 'Custom Label' );
}
What are your feelings