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
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
3Hi 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.
Hi Andrew,
that did the job, thank you very much.
Vaclav
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.