4

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.

Thanks.

4

We have to just create mage folder inside our theme.

Magneto2/app/design/frontend/{Vendorname}/{themename}/web/mage

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

php bin/magento setup:static-content:deploy

Its working fine.

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.