Where is Template Path Hints in Magento 2?

You can only see some settings in developer mode. So first of all check that you are in developer mode, if not then run this command php bin/magento deploy:mode:set developer in root directory.

Then go to admin panel:

For Front End:

Store > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Storefront > Yes


For Admin :

Store > Configuration > Advanced > Developer > Debug > Enabled
Template Path Hints for Admin > Yes


You can do it by two ways:

  1. Using cli:

goto you project root directory on command line and run below command

php bin/magento dev:template-hints:enable 

php bin/magento dev:template-hints:disable 
  1. go to admin backend:

    Store > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Storefront > Yes

    Stores > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Admin > Yes

    Stores > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Add Block Names to Hints > Yes

enter image description here

Hope, this will help some extend.


Go to admin

For Front End:

Stores > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Storefront > Yes

For Admin :

Stores > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Admin > Yes