This is the Magento core template path:
vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml
I would like know how to override this template with my theme.
Simple copy minicart.phtml from following
vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml
and put in
root/app/design/VenderName/ThemeName/Magento_Checkout/templates/cart/minicart.phtml
Flush your cache and check.
vendor\magento\module-theme\view\frontend` Override:
<vendor-name>\<theme-name>\Magento_Theme` So Checkout(Magento_Checkout): Core: vendor\magento\module-checkout\view\frontend` Override:
<vendor-name>\<theme-name>\Magento_Checkout` minicart.phtml will be placed accordingly: <magento-root>/app/design/frontend/<vendor-name>/<theme-name>/Magento_Checkout/templates/cart/minicart.phtml
So like this method any modules template can be override and customize.
Commented
Sep 14, 2016 at 13:31
The only thing that worked was manually clearing the contents of pub/static/
but make sure that you don't delete the .htaccess file inside pub/static/ folder
Some of the things that I tried and didn't work
Adding a mapping in requirejs-config.js (Both in the code and design folders)
"map": {
"*": {
'Magento_Checkout/template/minicart/content.html': 'Magento_Theme/template/minicart/content.html'
}
}
bin/magento setup:static-content:deploy -f --theme Vendor/module en_GB en_US