• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Customize the search box text in Genesis Framework

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.

For example?

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:

To see this and another 839 code snippets of this website, login or subscribe here.

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.

Conclusions

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. 😉


Genesis Framework PHP Search

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?