0

This question already has an answer here:

I want to override magento catalog module product template in my custom theme.

Catalog module template path:

<magento_path>/vendor/magento/module-catalog/view/frontend/templates/product/view/type/default.phtml

My custom theme template path:

<magento_path>/app/design/frontend/<theme_vendor>/<theme_name>/Magento_Catalog/templates/product/view/type/default.phtml

I've disabled all cache types and tried to clear with command:

php bin/magento cache:flush

If I modify magento catalog module template directly my customization goes well.

I did other modules templates (.phtml) and layouts (.xml) overrides (Magento_Contact, Magento_LayeredNavigation, Magento_Search, Magento_Theme) in my custom theme and have gone well.

What am I doing wrong?

I'm using Magento 2.0.4

marked as duplicate by Abdul, Fabian Schmengler, Raphael at Digital Pianism, Qaisar Satti, Marius Apr 7 '16 at 11:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You are doing the right way! Got any changes? Copy styles from vendor theme-frontend-blank and less lib in lib\web\css to your theme in app\design\frontend. Copy layout , templates from vendor of module you need to modify – mrtuvn Apr 7 '16 at 8:59
  • You are going the right way. Please see here for more details devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/… – Abdul Apr 7 '16 at 9:37
1

I had done everything correctly, however I forgot to set my theme in magento panel.

Not the answer you're looking for? Browse other questions tagged or ask your own question.