Gravatar for

Question by Jennifer Palawasta, Jul 20, 2016 2:13 PM

Facet search placeholder

We are implementing facet search and want to change the placeholder text away from 'Search in product'. I do not see where we can assign a class to the input element in the index file to define a new placeholder text. Any suggestions?

1 Reply
Gravatar for

Answer by olamothe, Jul 20, 2016 5:14 PM

You can override the localized string.

In your case it would be :

String.toLocaleString({ "en": {
  "SearchIn": "Replace me by something else",

Change the "en" key if you wish to do it for a different locale.

Gravatar for

Comment by Jennifer Palawasta, Jul 21, 2016 8:29 AM

That worked! Thank you.

Ask a question