1

I have created a new theme and i'm trying to override a template (same example as Magento Developer guide

http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/templates/template-sample.html)

so i just added this file

magento2/app/design/frontend/Plata/platatheme/Magento_Checkout/web/templates/minicart/content.html

and changed something as they suggest. Then i reloaded and nothing changed, it always load the old version.

I removed all files from pub/static, run magento setup:static-content:deploy and flushed both magento and browser cache.

I checked in

pub/static/frontend/Plata/platatheme/en_US/Magento_Checkout/templates/minicart/content.html

and there is my version of the file.

Should i run some more commands from the terminal?

  • have you changed theme from content->design-> configuration? – Ronak Chauhan Oct 21 '16 at 5:41
1

I think your File Path Mismatch

Your File path

magento2/app/design/frontend/Plata/platatheme/Magento_Checkout/web/templates/minicart/content.html

Change Like:

magento2/app/design/frontend/Plata/platatheme/Magento_Checkout/web/template/minicart/content.html

After Change this Clear cache, and generate static content then check it.

Reference: http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/templates/template-sample.html

  • So it's "templates" inside their module and template in my custom theme, Thank You! – Alessandro Berlati Oct 21 '16 at 8:51
1

You have wrong file path

magento2/app/design/frontend/Plata/platatheme/Magento_Checkout/web/templates/minicart/content.html

Should be

magento2/app/design/frontend/Plata/platatheme/Magento_Checkout/web/template/minicart/content.html

Remove pub/static/*

Run below command

php bin/magento setup:static-content:deploy

php bin magento cache:clean

Delete you browser cache, you can get your changes now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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