• Resolved KathleenH

    (@kathleenh)


    Just wondering if anyone can tell me how to change the search box text? I’m talking about a search box in the sidebar, which is a widget (the one that is included with Hueman). Is it the sort of thing that can be changed with css?

    Thanks so much for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Vishnupriya Natarajan

    (@vishnupriya-natarajan)

    Here′s a filter that you can drop instead into your functions.php file:
    function wpse50321_alter_search_form( $form )
    {
    return ‘<form role=”search” method=”get” id=”searchform” action=”‘ . esc_url( home_url( ‘/’ ) ) . ‘” >
    <input type=”text” value=”‘ . ( is_search() ? get_search_query() : ‘DEFAULT SEARCHBOX STRING’ ) . ‘” name=”s” id=”s” />
    <input type=”submit” id=”searchsubmit” value=”‘. esc_attr__(‘Go’) .'” />
    </form>’;
    }
    add_filter( ‘get_search_form’, ‘wpse50321_alter_search_form’, 99999 );

    Thread Starter KathleenH

    (@kathleenh)

    Thanks so much for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the search box text (widget) – Hueman’ is closed to new replies.