Created
January 29, 2019 08:42
-
-
Save mrpsiho/73357ad1409a2b345dc865296f8279f6 to your computer and use it in GitHub Desktop.
Fixing background color selection in Flatsome theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const flickty = jQuery('.woocommerce-product-gallery__wrapper').data('flickity'); | |
if (typeof flickty !== 'undefined' && flickty.slides.length > 1) { | |
flickty.destroy(); | |
jQuery('.woocommerce-product-gallery__wrapper').flickity({ | |
draggable: false | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Query: Where do I put this code? use flatsome 3.13.3. Thank you very much for the help