How to override file from vendor/magento/magento2-base/lib/web/mage/gallery folder.

I have to some changes inside gallery.html file and gallery.js file. How to override those file inside my custom theme.



We have to just create mage folder inside our theme.


Keep gallery folder inside mage and remove var folder and apply command

php bin/magento setup:static-content:deploy

Its working fine.

| improve this answer | |

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.