Change the Search Field Default Text in Genesis WordPress Theme

You can change the default “Search this Website…” text in the Search bar field in a Genesis WordPress theme by using a filter added to your functions.php file.


//Change search form text

function themeprefix_search_button_text( $text ) {
return ( 'Search text goes here...');
add_filter( 'genesis_search_text', 'themeprefix_search_button_text' );

So in the above code a  function is created, the text is passed in as an argument and run against the Genesis filter genesis_search_text .



  1. Caryn on January 25, 2017 at 3:23 am

    Hi Neil,

    The sizing and placement of my search box is off. I used the code above to move it to the top, but I need the box to be longer and moved up on the menu area just a smidge. Do you know where I do that spacing?

    Thank you,

  2. Hani on October 10, 2016 at 11:40 am

    hello sir
    it’s good
    how to make the text in center?

    • Neil Gowran on October 10, 2016 at 7:54 pm

      You can use CSS and text align to do that

  3. Johan on January 6, 2016 at 12:37 pm

    Is it possible to make the actual text bold or stand out more?

  4. Anna on September 7, 2015 at 10:05 am

    Hi Neil!

    I tried to fix it in my blog but I can’t find the code to modify in my functions.php
    I’m using Genesis and Foodie Pro. Is there any way to fix it?

    Thanks a lot!


    • Neil Gee on September 7, 2015 at 10:17 am

      Hi Anna – you just add the code to your functions.php file

    • Jossie on June 11, 2017 at 1:59 pm

      You’re supposed to add it

Leave all Comment