Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

How to Enable Template Path Hints in Magento 2

09-28-2016

How to Enable Template Path Hints

Are you looking for How to Enable Template Path Hints in Magento 2 tutorial? So you are in the right place. In this post we are going to help you enable template path hints for frontend and admin from Magento admin pannel also.

Template path hints in Magento 2 assist 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 easier and of course edit them more quickly thanks to the notation added with each path’s template. The code can be found both on the frontend and the backend in the Magento file structure.

Hire Magento Developers

What you need to do is only describing desired features of the Magento website, we will help you to build the store that ticks all the boxes!

Get Started
hire magento developers

To Enable Template Path Hints in Magento 2

We have divided our tutorial into two main parts as follows:

Enable Template Path Hints in Admin Configuration

To Enable Template Path Hints for Storefront

3 Steps to Enable template path hints in Magento 2

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

Magento 2 enable template path hint for Storefront

Enabled Template Path Hints for Admin

Go to the admin panel:

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

Magento 2 enable template path hint for Admin

Enabled Template Path Hints for Add Block Names to Hints

Go to the admin panel:

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

Enable Template Path Hints Command Line

8/2016

At this moment, there may be no command line to enable or disable Template Path hint via command line (Default Magento 2 Command line).

Let’s wait for the next Magento update or the external module.

Updated 1/2018

Now you can enable or disable Template path hints via Command Line Go to Magento 2 root folder and run the following command:

Enable template path hints for frontend
php bin/magento dev:template-hints:enable 
Disable template path hints for frontend
php bin/magento dev:template-hints:disable 

Flush cache if any.

Clean and flush cache if any

bin/magento cache:clean
bin/magento cache:flush

Now you have completed the template path hints enabling process for your Magento 2 store. When 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!


You can find the following questions on search engines :

  • Template path hints behavior

  • Where are the Template Path Hints in Magento 2?

  • Easy Template Path Hints Magento 2

  • How do I turn on template path hints in Magento 2?

  • Enable Template Path Hints for Frontend & Admin Panel in Magento 2

  • ENABLE TEMPLATE/BLOCK HINTS IN ADMIN PANEL Magento 2

  • Enable Template Path hint in Magento 2

Related topics

x


    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services