How do I change the "Search…"-placeholder text

Homepage Community Forums Epik Theme Support How do I change the "Search…"-placeholder text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14658
    designkombinat
    Customer

      I’ve already tried this, but it doesn’t work. Can someone help?

      #14671
      scooby
      Customer

        It’s probably because the code is already in your child theme’s functions.php file by default. Just search for the code in your functions file, it should look like this –

        // Customize search form input box text
        add_filter( 'genesis_search_text', 'custom_search_text' );
        function custom_search_text($text) {
            return esc_attr( 'Search...' );
        }

        You can change the Search... part to whatever you need and then it should work fine.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘How do I change the "Search…"-placeholder text’ is closed to new replies.