How to change placeholder Text in Search box of magento2
To change the text (earch entire store) that appear in Magento search box on home page.
You need to edit the following file.
"Form.mini.phtml"
You will find the file in the following location :
Magento install directory\vendor\magento\module-search\view\frontend\templates
I.E. If your magento2 is installed in wamp which is installed in "D" drive than the path to the magento install directory is
D:\wamp\www\
"www" being the folder you have installed the magento.
than the path to the form.mini.phtml will be
D:\wamp\www\vendor\magento\module-search\view\frontend\templates
open the "form.mini.phtml"
Find this line:
placeholder="<?php /* @escapeNotVerified */ echo __('Search entire store here...'); ?>
(probably around line 32)
And replace the text "Search entire store here..." with anything you like
Thank you
The post was very informative, thanks for sharing
ReplyDeleteWeb Design company in Hubli | web development company in Hubli | web designers in Hubli | IT companies in Hubli | Web Design Companies in Hubli | Software Companies in Hubli
It was great sharing about magento development, keep on updating and sharing it with us
ReplyDeletewebsite security certificate | ssl certificate price | Dedicated Servers in India | cheap dedicated hosting india
This is not the right way to do so, place the string Search entire store here... in a translation file.
ReplyDeleteWhats the right way ?
DeleteWhat a sensational blog! This blog is too much amazing in all aspects. Especially, it looks awesome and the content available on it is utmost qualitative. magento eshop
ReplyDelete