I am unable to find a clear description of how to determine the directory in which a customized template in a child theme should be put. My particular case is a customization of the file vendor/magento/module-catalog/view/frontend/templates/product/list.phtml , where I want to change the text displayed on a button. But I am also looking for more general rules about placing customized templates.
Solved! Go to Solution.
You need to put your template in your theme at below location,
app/design/frontend/{Vendorname}/{themename}/Magento_Catalog/templates/product/list.phtml
Hello @josiah_carberry
first of find current active theme (https://www.youtube.com/watch?v=j-AWgnTJfU8)
you can find that theme under app/design/frontend/<theme package name>/<theme name>
in that you need to create Magento_Catalog folder
inside that folders templates
product/list.phtml
So all path is
app/design/frontend/<theme package name>/<theme name>/Magento_Catalog/templates/list.phtml
hope it will help you.
if works then mark as solution.
You need to put your template in your theme at below location,
app/design/frontend/{Vendorname}/{themename}/Magento_Catalog/templates/product/list.phtml
Thanks very much.
It would be nice to see the general rule for figuring out where to put these templates.