Home>Support>Search Bar (upper right corner of menu bar) – Change text

Search Bar (upper right corner of menu bar) – Change text

By Andy, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

How can I change the text (the language of the text) to something other than “Search” in the Search Bar found in the header or in the menu bar?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Andy

    Thanks for reaching out.

    There isn’t an easy way to change the search form placeholder text from within the Vantage theme options.

    If you have a background in coding you could use a child theme, copy searchform.php from the parent into your child theme and then edit the placeholder there.

    Here is a stater child theme if that’s something you’d like to jump into:

    https://siteorigin.com/wp-content/uploads/2015/03/vantage-child-starter.zip

    If you’d ever like a hand with small or big custom development tasks we recommend the developers at https://codeable.io.

  2. 9 years, 2 months ago Andy

    Got it! Thank you, so much.

  3. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Fore sure :) Hope you’re able to make progress.

    All the best.

  4. 9 years, 1 month ago Andy

    You have helped us track down how to change the text in the Menu Bar for the Search Form in our Vantage child theme. We did this by copying the “searchform.php” from our parent theme into your child theme and then edited the “placeholder ‘Search'” there.

    Now… how do we accomplish the same thing for our responsive menu? Where would that file be so we can do the same thing for all mediums across devices of the Search Form?

  5. 9 years, 1 month ago Private Message - Andy

    This is a private message.

  6. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hey Andy

    The conventional way of doing this would be by translating the theme. The mobilenav placeholder isn’t as easy to change. There is a JavaScript localization happening. You could perhaps try using:

    http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en

    To translate the string in question. It is a translatable string.

    'search' => array( 'url' => get_home_url(), 'placeholder' => __( 'Search', 'siteorigin' ) ),
    
  7. 9 years, 1 month ago Andy

    Hey Andrew! Where do I find the translatable string that you sent me above? I did not find that string in the searchform.php file in the parent theme. Also, which elements are the elements that I can change into a different language? For example, are the translatable parts of the text between the apostrophe (‘) symbol, such as the following SHOULDITRANSLATETHIS? parts:

    ‘SHOULDITRANSLATETHIS?’ => array( ‘url’ => get_home_url(), ‘placeholder’ => __( ‘SHOULDITRANSLATETHIS?’, ‘siteorigin’ ) ),

  8. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    It’s unfortunately beyond our current support scope to child theme and filter the search form in the mobile menu. The easiest way to translate that string would be to translate the theme using the provided .pot file found in the languages folder. Instead of doing it manually, you could use a plugin like Codestyling Localization. The following tutorial covers this plugin and a few other options:

    http://wplang.org/translate-theme-plugin/

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More