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?

Suresh Chikani
16.1k11 gold badges65 silver badges102 bronze badges
asked Oct 20, 2016 at 21:41
1
  • have you changed theme from content->design-> configuration? Commented Oct 21, 2016 at 5:41

2 Answers 2

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

answered Oct 21, 2016 at 4:47
1
  • So it's "templates" inside their module and template in my custom theme, Thank You! Commented Oct 21, 2016 at 8:51
2

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.

Teja Bhagavan Kollepara
3,8275 gold badges33 silver badges69 bronze badges
answered Oct 21, 2016 at 5:24

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.