5
  • In my case, after enable the path Hints, from magento2 back-end section, its not showing. I enabled the settings in.

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

    Can anyone tell me how fix this ?

    enter image description here

  • Yes, I already select to scope .but it seems not fixed. – Anikesh Shahi Nov 2 '17 at 8:59
  • Are you in production mode ? – Kishan Patadia Nov 2 '17 at 9:00
  • No,working on local server. – Anikesh Shahi Nov 2 '17 at 9:03
  • You need to set Default Store view instead of Main website in your current scope. – Rakesh Jesadiya Nov 2 '17 at 9:06
  • 1
    m2.3 use storurl/?templatehints=magento – matinict Mar 27 at 7:47
5

For future googlers - I had this same problem on a site that had the core Magento data migrated over from an M1 store I had no control over. The problem turned out to be an IP address in the developer client restrictions input. This overrides template hints.

developer ip restrictions input in Magento 2 admin area

  • 1
    This worked for me. – Sarasranglt Dec 19 '18 at 10:10
  • 1
    Thanks, this worked for me. – Lucas D.A.W. May 13 at 10:24
2

You need to set scope Default store view or your current store view. You have set Main Website in Current configuration scope.

enter image description here

After set Current configuration as YOur Default store view and check Yes for storepath hints for front and Blockpath hints as Yes.

2

As @matinict mentioned in his comment, in Magento 2.3 you need to append ?templatehints=<Parameter Value> in your URL.

So your url will be look like as following:

http://localhost?templatehints=magento

and for any particular page URL will be like that

http://localhost/checkout/cart/?templatehints=magento

enter image description here

  • it works for me – Alam Zaib Aug 22 at 5:23
1

If you are using Magento 2.2 then on production mode, the template hint will not work.

Also, you need to check the setting at last level of scope mean store view scope.

1

Curiously. Now it works. Added a new block on the site and once again cleared the cache.

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.