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

1

2 Answers 2

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

0
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

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.