Magento 2: How to Override gallery.html File from Vendor

magento2overrides

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.

Best Answer

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.

Related Topic