How to customize the default Search Form text in StudioPress Genesis Framework themes

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 http://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.

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Leave a Comment

*