Home>Support>Change Text of Search Widget

Change Text of Search Widget

Hi,
I am using Vantage Premium and I would like to change the text that appears in the search widget, i.e. from “Search” to something else (e.g. “Suche” in my case, as it’s a german website). How can I do that?

Thanks.

Vaclav

URL: http://lektorat-demling.de/

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, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi Vaclav

    Thanks for running Vantage.

    This is a default WordPress widget unfortunately without any options like changing the placeholder text. There is probably a better way of doing this but here is how I solved the problem locally now.

    1. I installed this plugin so we can paste PHP into widgets: https://wordpress.org/plugins/enhanced-text-widget/
    2. I inserted our new widget Enhanced Text Widget into the footer widget area.
    3. I then inserted the search form code into that widget as follows:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">    <div>        <input type="text" value="" name="s" id="s" placeholder="Search" />        <input type="submit" id="searchsubmit" value="Search" />    </div></form>

    Now you can replace the placeholder=”Search” with placeholder=”Suche”.

    Hope that helps.

  2. 9 years, 11 months ago Vaclav Demling

    Hi Andrew,

    that did the job, thank you very much.

    Vaclav

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

    Super, glad to hear that did the trick. All the best.

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