This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

10 years ago · Last reply by Andrew Misplon 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

8
  1. Andrew Misplon Staff 10 years, 6 months ago

    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. Andy 10 years, 6 months ago

    Got it! Thank you, so much.

  3. Andrew Misplon Staff 10 years, 6 months ago

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

    All the best.

  4. Andy 10 years, 6 months ago

    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. Andy Private 10 years, 6 months ago

    This is a private message.

  6. Andrew Misplon Staff 10 years, 6 months ago

    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. Andy 10 years, 6 months ago

    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. Andrew Misplon Staff 10 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread