0

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

2
  • 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
    Commented Apr 7, 2016 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
    Commented Apr 7, 2016 at 9:37

1 Answer 1

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.