elevateweb / elevatezoom

1.02k stars 493 forks source link

How deactivate elevatezoom #181

Open massuz opened 6 years ago

massuz commented 6 years ago

Hi to everyone, i bought an e-commerce template with woocommerce and Elevate Zoom. My problem: on mobile navigation side, zoom doesn't allow a good scroll in the single product pages. I'm not a developer and don't know JQ language, i can deactivate zoom by using css .zoomContainer{ display: none; } But using that code i noticed that in mobile Chrome by touching the image of the product page don't scroll anyway. How can i deactivate zoom (it's ok for me deactivating it also in desk navigation, if necessary) with no further problems? THANKS

Anton-Evstigneev commented 4 years ago

ezPlus instance is attached to DOM as $('img').data('ezPlus') object. It has destroy() method that you probably need, and many other useful methods. Docs are lacking, but you can inspect that data object, plus see the source code in node_modules/ez-plus/src/jquery.ez-plus.js if you've installed via NPM.