Magento Tutorials

How to Quickly Enable Magento Template Path Hints

Handling your own Magento theme is not always a smooth path forward. However, with Template Path hints, you can create a work environment where you can visualize and understand exactly where you’re working on, as well as exactly where changes need to be made.

Magento template path hints
Template path hints show paths to each template used on the page

However, to enable template path hints, you have to have at least one preconfigured Storeview, which isn’t always ideal. There are several ways to get the job done, but I’ll only show you the fastest ones:

Via the Admin Panel:

Step 1: On the Admin sidebar, go to Stores > Settings > Configuration

Step 2: Expand Advanced > Developer

Step 3: Expand Debug and set Enable Template Path Hints for Storefront to Yes
Notes: You can also enable template path hints for admins by setting Enabled Template Path Hints for Admin to Yes.

Enable Template Path Hints config

Via command line

php bin/magento dev:template-hints:enable

And that’s just it. To disable template path hints, simple change enable to disable, like so:

php bin/magento dev:template-hints:disable

Conclusion

Monitoring Magento projects often means coming to an intimate understanding of various extensions and third-party tools in order to maintain and develop your Magento store with great efficiency. Profiting from this tutorial, you can save a lot of time in editing templates between switching front-end and back-end.

Dom

A knowledge craver who always strive to be wiser everyday.