2

In the admin there are three options for debugging your theme layout:

  • Enabled Template Path Hints for Storefront
  • Enabled Template Path
  • Hints for Admin Add Block Names to Hints

When at least the first one is enabled, you get red rectangles highlighting where a template file starts and ends.

These correspond to all places a block class is mentioned in the layout XML file. If the 3rd option is selected you also see the name of the block class.

Question:

Is it possible to output the container name(s) wrapping the blocks?

1
  • I was also wondering, but still no answer.
    – DevonDahon
    Commented Oct 20, 2017 at 8:09

1 Answer 1

2

Maybe the following 3rd party module covers your needs:

H&O Magento 2 Advanced Template Hints module

Apart from the container names, it shows hints for UI Components as well.

Furthermore, it is less messy than the default magento hinting system because it displays the hints in browser's console.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.