Locate templates in Magento 2 | How to Enable Template Path Hints in Magento 2

To enable template path hints in Magento 2 follow these steps:

1. Make sure your Magento 2 is in the default or developer mode (How to enable Developer Mode in Magento 2).

2. Go to Admin Panel > Stores > Settings > Configuration > Advanced > Developer > Debug.