How to change search box text

  • jcervantes28

    #7653

    Hello,

    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: http://www.shortstoryguy.com

    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.

    Admin

    jcervantes28

    #38891

    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.

    Sorry.

    Jose

    Prasanna SP

    #38892

    Same function,

    <?php
    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 );

    jcervantes28

    #38893

    Thank you. Topic closed

    Prasanna SP

    #38894

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

    jcervantes28

    #38895

    got it. thanks. didnt know.

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

You must be logged in to reply to this topic.