ThemeShaper Forums » Thematic

changing search field value

(3 posts)
  • Started 10 years ago by juergengenser
  • Latest reply from cannobbio
  • This topic is resolved
  1. Hello,

    I'm desperately trying to figure out how to change the search-field value text ("To search, type and hit enter"). Can I do that by writing a function in my functions.php?

    Thanks,
    J├╝rgen

    Posted 10 years ago #
  2. Try this in your child theme functions.php, making changes where you see necessary:

    add_filter('search_field_value', 'my_search_field_value');
    function my_search_field_value($value) {
    	return 'the text you want to use';
    }
    Posted 10 years ago #
  3. cannobbio
    Member

    Thank you nathanrice, I was looking for that also.

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.