How to change the default Magento placeholder search text

How to change the default Magento placeholder search text

Recently on a project I was working on I needed to change the default placeholder text for Magento. After spending some time trying to figure out where to change the text I decided that I would write a quick blog post, hopefully helping others who may also have ran into the same problem.

Please note this change was made on Magento 1.9.0 and might differ on older versions of Magento.

By default Magento’s search placeholder text is “Search entire store here…”.

In order to change it you need to create a new CSV file “translate.csv” in the locale directory of your theme e.g. app/design/frontend/{{package}}/{{theme}}/locale/en_US

* Please note en_US needs to be the language of your store.

You then need to add the following to the CSV and replace the second line of text.

"Search entire store here...","New Placeholder text here"

7 ResponsesSubscibe to the Comments FeedAdd Comment

  1. Web Development India wrote on

    This is Great.. Wonderful information.. Awesome Thanks..

  2. Byron wrote on

    Thank You!

    • Colin wrote on

      No problem at all :)

  3. Jack J. wrote on

    Hi Colin! As a developer, you may find useful a localization tool like to help translate your software.

    • Colin wrote on

      Thanks Jack :)

  4. Steve Sims wrote on

    Hi Colin – Can you clairfy if I need to “create a new CSV file “translate.csv”” or can I just add your line of code to the existing csv file in that folder? Thank you.

    • Colin wrote on

      Hi Steve,

      Sorry for the delay. You can add it to an existing translate file in your theme if it exists already.


Leave a Reply