Back to Top

How to Enable Template Path Hints in Magento 2 From Admin

Updated 17 February 2026

We’ll explore here the step-by-step process to enable template path hints in Magento for easier frontend development.

Enable Template Path Hints Magento 2 assists you in the process of defining, for example, a .php block class that corresponds to one of your store’s specific page areas.

You are also able to locate the .phtml files more easily and, of course, edit them more quickly thanks to the notation added with each path’s template.

Enable Template Path Hints for Storefront

  • Step 1: Go to the admin panel
  • Step 2: Choose Store > Configuration > Advanced > Developer > Debug > Enable Template Path Hints for Storefront
  • Step 3: Click Yes to Enable Template Path Hints
path-hintes

Start your headless eCommerce
now.
Find out More

Enabled Template Path Hints for Admin

  • Step 1: Go to the admin panel
  • Step 2: Choose Store > Configuration > Advanced > Developer > Debug > Enable Template Path Hints for Admin
  • Step 3: Click Yes to Enable Template Path Hints

Choose where to enable hints for the Storefront or Admin. Select Yes in the “Add Block Class Type to Hints” select box in case you want to show the PHP Block class name along with the Template path.

admin

Enable Template Path Hints Command Line

php bin/magento dev:template-hints:enable
php bin/magento dev:template-hints:disable

Flush Cache if any.

Now you have completed the template path hints enabling process for your Magento 2 store.

If you have any questions, feel free to discuss with us below. And remember to check out the following related topics to get more insight into this issue.

Happy coding!

Learn more from this link : https://developer.adobe.com/

Check for other blogs as well: https://webkul.com/blog/graphql-mutation-2/

For technical assistance, please get in touch with us via email at [email protected]

Additionally, explore a wide range of solutions to upgrade your store’s functionality by visiting the Magento 2 Modules section.

For expert guidance or custom feature development, hire experienced Magento 2 developers for your project.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home