I want to change the default search box placeholder text by using a translation file - it's the text that says "Search entire store here...". I want to change it to "Search website".

I have tried doing this with a translation file at app/design/frontend/<package>/<theme>/i18n/en_US.csv with the following content:

"Search entire store here...", "Search website"

And then I completely cleared the cache and static view files (we are running in developer mode). However, the original placeholder text remains and i've not found a way to change it.

I have also tried adding the translation to app/design/frontend/<package>/<theme>/Magento_Search/i18n/en_US.csv and this also had no effect.

We are running Magento version 2.3.5-p1.

Where do I need to add the translation file to change the search box placeholder text?


Try changing from.mini.phtml file from below link app/design/frontend/Theme_Vendor/Theme_Name/Magento_Search/templates/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.