Learn how to modify the search box text in any Genesis Framework child theme using the following snippet.
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 “Search my website…”which is the default text in the search box, by a “Search” or something more in line with the brand tone thanks to a Genesis filter hook.
Just avoid getting too creative. The last thing you want is for the visitor to hesitate when they see that message and not being clear if that’s where they should introduce the search term.
Code to modify the text in the search box
Add this snippet to the end of the functions.php file:
Using this code the text that will appear inside the search box will be “Search…”.
Of course, you can change it according to your needs.
If you want to modify other search aspects, take a look at how to customize the submit button.
Now you know the code to modify the text 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. 😉