WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Mar 23 2011

How to Customize Genesis's Search Form Text and Button Text

Customize the Search Form text
[php]add_filter('genesis_search_text', 'be_custom_search_text');
function be_custom_search_text($text) {
return esc_attr('Search');
}[/php]

Customize the Search Button text
[php]add_filter('genesis_search_button_text', 'be_custom_search_button_text');
function be_custom_search_button_text($text) {
return esc_attr('');
}[/php]

Written by Travis Smith · Categorized: Genesis, Tutorials

StudioPress Premium WordPress Themes     WP Engine Managed WordPress Hosting

What can I do for you!?

Custom Development

We develop plugins by determining both business/functional and technical requirements, following WordPress development best practices, and using agile methodology to ensure you get the best solution.

Consulting

Have questions? Need a reliable developer to consult? Please contact us today!

Customized Theme

We can customize your theme or child theme, or create a child theme for you based on your needs while enhancing the performance of every individual attribute.

Customized Plugin

We can customize your plugins, extend plugins (e.g., Gravity Forms, Jetpack, Soliloquy) based on your needs ensuring security, performance, and positive business impact.

Contact Us

About Travis Smith

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

Comments

  1. Daniel Fiege says

    August 8, 2013 at 1:59 pm

    If I wanted to pass an image in instead of text for the Search button, would I use $image as an argument and <img src="…. for the esc_attr?

    Reply
    • Travis Smith says

      August 9, 2013 at 11:18 am

      For an image, just use CSS. But if you are doing something dynamic on this for whatever reason, then you want to filter `genesis_search_form`.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in