Popular

Friday 22 April 2016

Change localhost to domain name of your choice for wamp in windows

Replacing Localhost to domain name or website name of your choice in Windows is very easy.

Sometimes when you are working on a web project on wamp you want that your site will open in wamp when you type in the domain name of your site instead of typing localhost in the addressbar.

Following are the steps you have to follow for use the domain of your site to run your website on wampserver instead of localhost:

In windows explorer go to this location :
C:\Windows\System32\drivers\etc

And Open hosts file
hosts file as shown in this image



open the host file in notepad,

Find this line:
127.0.0.1    localhost
 Copy this line and paste it again in a new line
and replace the word -  "localhost" with your own domain as shown in image below :



 Save and Close it.

Now run the wampserver
after the wampserver icon turns green i.e. it starts all its services.

Now when you open the browser and enter the domain name you saved in hosts file it will run successfully.


Thursday 21 April 2016

Change placeholder text of Search box in Magento homepage

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