3

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

butcher
  • 101
  • 1
  • 1
  • 8

2 Answers2

4

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

LinoPham
  • 3,778
  • 5
  • 22
  • 45
3

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

Ahmad Alfy
  • 185
  • 6