Find out how to modify the text of the submit button in the search box of the Genesis Framework child themes using code.
Of all the ways to customize a Genesis child theme, we usually focus only on the aesthetic side.
However, it is worth making small changes to the theme texts so that they are also aligned with the brand.
You can replace the default “Search” in the search button with a “Locate” or something more appropriate for the type of project you’re working on. And all thanks to a Genesis filter hook.
But don’t get too creative. The last thing you want is for the visitors to hesitate when reading the text and not being clear if that’s where they should click to find what they want.
Code to modify the text of the search button
Add this snippet to the end of the functions.php file:
Using this code the text that will appear inside the search button will be “Locate“.
Of course, you can change it according to your needs.
If you want to tweak other search aspects, take a look at how to customize the text that appears inside the search box.
Now you know the code to modify the text of the submit button in the search box for any Genesis child theme.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉