How to make the Magnific Popup works with jQuery on Debut theme 2

algoy
Tourist
31 0 1

Hi all,

I have recently followed the youtube video below to set up the Magnific Popup for the product images, the image did pop up by clicking the image. However, jQuery doesn't work.

https://www.youtube.com/watch?v=QVetGEogYy0&list=PLCBADLeZ_KGBfJN-WL8TZGJyolZ6z81Tu&index=7&t=23s

And I just found that the magnific popup would work when I remove the codes below from vendor.js, the codes should be preset from the Debut theme, however, the banner slideshow would not work once I removed the codes, anyone can help?

/*
* jQuery throttle / debounce - v1.1 - 3/7/2010
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
function(e,t){var n,i=e.jQuery||e.Cowboy||(e.Cowboy={});i.throttle=n=function(e,n,o,r){function s(){function i(){l=+new Date,o.apply(u,d)}function s(){a=t}var u=this,c=+new Date-l,d=arguments;r&&!a&&i(),a&&clearTimeout(a),r===t&&c>e?i():n!==!0&&(a=setTimeout(r?s:i,r===t?e-c:e))}var a,l=0;return"boolean"!=typeof n&&(r=o,o=n,n=t),i.guid&&(s.guid=o.guid=o.guid||i.guid++),s},i.debounce=function(e,i,o){return o===t?n(e,i,!1):n(e,o,i!==!1)}}(this);

Thank you.

Best regards,

algoy

Reply 1 (1)
algoy
Tourist
31 0 1

Hi all,

Can anyone help with this? Why would the jQuery for banner slideshow crash with the other even after I updated the jQuery version on Theme.liquid?

Thank you.

Best regards,

algoy