How to change search box text

  • jcervantes28



    I could not find a topic about this specifically.

    I simply want to change the text from inside the “Search” box on the top right corner.

    My website is:

    I want it to read “Search SSG”

    Is this something I can achieve through the child theme or should i go to searchform.php?

    Thank you.




    Those posts you linked to refer to customizing the twitter widget. I know there’s something I’m missing. How do I tweak the help in these posts to achieve what I want?

    I went to searchform.php to compare the code in there with the code you referenced in the above support link but I couldn’t figure out what you wanted me to do.





    Same function,

    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'Search' => 'Search SSG',
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    return $translated;
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );



    Thank you. Topic closed



    Marking thread as resolved. You can do this yourself as well.



    got it. thanks. didnt know.

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

  • You must be logged in to reply to this topic.