I'm a front end developer and recently started working with Magento 2. Currently I'm Working with Magento 2.2.6. and trying to override Cart Slider template which is I found in my theme Magento_Checkout > template > minicart > content.html I have made some structural changes, and then run the compile command, but I'm unable to see my changes. The file in pub>static>... folder doesn't reflect my changes. Not sure what I am doing wrong in compiling the code
1 Answer
Your override Cart Slider template which is I found in my theme Magento_Checkout > template > minicart > content.html it is wrong.
Please override your content.html file at location magento2/app/design/frontend/{vendor}/{theme}/Magento_Checkout/web/template/minicart/
After run below commands:
php bin/magento cache:clean
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
For eg:
app/design/frontend/Stack/arpixel/Magento_Checkout/web/template/minicart/content.html
pub/static/frontend/{Theme Vendor}/{Theme}/{Website local}/Magento_Checkout/template/minicart/content.html
Magento_Checkout> web > template > minicart > content.html