Executive Pro Search Initial Value

Community Forums Forums General Discussion Executive Pro Search Initial Value

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  AC 9 months, 4 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #81926

    Aryadne
    Participant
    Post count: 12

    How can I remove the initial value in the search field?

    I’m guessing it has something to do with the search.php file.

    http://webnetcontractors.com/
    #81937

    AC
    Blocked
    Post count: 7712

    What do you mean by “initial value”?

    #81938

    Aryadne
    Participant
    Post count: 12

    The “Search this Website” value.

    #81939

    AC
    Blocked
    Post count: 7712

    Add this to your functions.php file. Before you use it – I would suggest you make sure that all of the apostrophes are correct by pasting this code into Notepad. Otherwise, it may blow your site. From there you can edit or remove the “Search my blog…”.

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

    This code comes from here.

    #81940

    Aryadne
    Participant
    Post count: 12

    Awesome! It works!!!

    #81941

    AC
    Blocked
    Post count: 7712

    Great!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.