9

Since the official Magento 2.0 forums aren't of any help, i'll post my question here as well.

We're in the process of building our own theme based on the Magento Blank theme and we would like to implement 2 small changes to the minicart dropdown in the header. These files are loaded through JS (Knockout.js framework), but simply duplicating the file to our own theme in the same folder (Name/name2/web/template/minicart/item/default.html) and editing them doesn't show up any changes so we suspect the override behaviour is different in this case.

Can someone point us in the right direction? Thanks!

Siarhey Uchukhlebau
16.2k11 gold badges57 silver badges89 bronze badges
asked Oct 12, 2015 at 12:56
1

2 Answers 2

3

This is the proper way to override the html file. I also had this issue, I think it's browser caching that prevents showing the changes. I do not have a real solution for this problem, but you can open the webshop in an incognito window each time you changed the .html file.

answered Nov 25, 2015 at 9:43
2

This is proper way to override template file. You have to remove folder manually from pub/static/frontend/{{Package}}/{{theme}} folder and clear your browser cache.

Run command php bin/magento setup:static-content:deploy

Try load page and changes are display.

Thanks.

answered Feb 12, 2016 at 5:01

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.