Just add this WordPress Code Snippet to the functions.php file in your current WordPress theme in order to customize the Search Form text in StudioPress Genesis Framework themes.
/**
* Customize Search Form Text in StudioPress Genesis Framework
*
* @author WPSnacks.com
* @link https://www.wpsnacks.com
*/
function change_search_text($text) {
return esc_attr('Some Text Here');
}
add_filter('genesis_search_text', 'change_search_text');
Just change Some Text Here with whatever you want to be displayed in the Search Form input by default before a user clicks in it. For example, here on WPSnacks, I have Find a snack… inserted into mine. Hope this helps, enjoy.
Leave a Reply