• 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 button text in Genesis Framework

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.

For example?

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:

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

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.

Conclusions

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

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?