nsmargolis Posted May 8, 2020 Share Posted May 8, 2020 Site URL: https://www.meridianacademy.org/division3-humanities/2020/5/6/civil-rights-quilt I'm trying to add the elevateZoom jquery plugin (https://www.elevateweb.co.uk/image-zoom/) to my site. I'm then trying to call it for a specific image on this page: https://www.meridianacademy.org/division3-humanities/2020/5/6/civil-rights-quilt. I've uploaded the plugin as a link and added it to my site's head via code injection. I then called it on the page via a codeblock: <script> $(document).on('ready', function () { $("#block-yui_3_17_2_1_1588791147485_100779").elevateZoom({ zoomType: "inner", cursor: "crosshair", zoomWindowFadeIn: 500, zoomWindowFadeOut: 750 }); }); </script> But it does not seem to be working. Any help would be much appreciated. Thanks! Link to comment
tuanphan Posted May 10, 2020 Share Posted May 10, 2020 Have you declared jQuery library yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
nsmargolis Posted May 11, 2020 Author Share Posted May 11, 2020 Yes--I believe so. I've added <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> to my head code injection site-wide. Link to comment
LostBoy Posted November 8, 2020 Share Posted November 8, 2020 (edited) I'm trying to do the same thing to effect all shop product images with the following code but it is not working. <script> $(document).on('ready', function () { $('#productList .product .product-image img, #productSlideshow .slide img').each(function () { $(this).attr('data-zoom-image',$(this).attr('data-image')); $("#productList .product .product-image img, #productSlideshow .slide img").elevateZoom();({cursor:"crosshair"}); }): }): </script> Edited November 8, 2020 by LostBoy Link to comment
tuanphan Posted November 9, 2020 Share Posted November 9, 2020 On 11/8/2020 at 9:02 AM, LostBoy said: I'm trying to do the same thing to effect all shop product images with the following code but it is not working. <script> $(document).on('ready', function () { $('#productList .product .product-image img, #productSlideshow .slide img').each(function () { $(this).attr('data-zoom-image',$(this).attr('data-image')); $("#productList .product .product-image img, #productSlideshow .slide img").elevateZoom();({cursor:"crosshair"}); }): }): </script> Try this <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).on('ready', function () { $('#productList .product .product-image img, #productSlideshow .slide img').each(function () { $(this).attr('data-zoom-image',$(this).attr('data-image')); $("#productList .product .product-image img, #productSlideshow .slide img").elevateZoom();({cursor:"crosshair"}); }): }): </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
LostBoy Posted November 10, 2020 Share Posted November 10, 2020 18 hours ago, tuanphan said: Try this <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).on('ready', function () { $('#productList .product .product-image img, #productSlideshow .slide img').each(function () { $(this).attr('data-zoom-image',$(this).attr('data-image')); $("#productList .product .product-image img, #productSlideshow .slide img").elevateZoom();({cursor:"crosshair"}); }): }): </script> Nope, nothing. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment