I already made a structure app>design>frontend> > . What structure do I need to make do override the .phtml in vendor>magento>module-theme>view>frontent>templates>html
-
Take a look at http://blog.magestore.com/how-to-create-theme-in-magento-2-part-2/ – MagePal Extensions Nov 25 '15 at 17:09
2 Answers
You should do as below
Copy templates need to make override in:
app/code/Magento/<module_name>/view/frontend/templates
Location contain templates using to override:
app/design/frontend/<Vendor_Theme>/<name_theme>/Magento_<module_name>/templates
Example
You want override a template in:
app/code/Magento/Catalog/view/frontend/templates/product/list.phtml
You create a file have path as:
app/design/frontend/<Vendor_Theme>/<name_theme>/Magento_Catalog/templates/product/list.phtml
- 3,778
- 5
- 22
- 45
This is the right answer
Copy templates need to make override in:
vendor/magento/<module_name>/view/frontend/templates
Location contain templates using to override:
app/design/frontend/<Vendor_Theme>/<name_theme>/Magento_<module_name>/templates
Example
You want override a template in: vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
You create a file have path as: app/design/frontend/<Vendor_Theme>/<name_theme>/Magento_Catalog/templates/product/list.phtml
- 185
- 6