ievavi Posted July 16, 2021 Share Posted July 16, 2021 Site URL: https://ievaviphoto.com/ I would love testimonials in the following pages to have an autoplay feature, however the code below doesn't work. Any insights why? I use summary blocks - carousel. These are the pages I'm trying to add the code: https://ievaviphoto.com/wedding-photography-copenhagenhttps://ievaviphoto.com/lifestyle-photography-in-copenhagen <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { try { var container = Y.one("div#page-section-5f3e088ea1068224988e22e0"); /*change this to the slug of your page*/ var gallery = Y.Squarespace.GalleryManager.getGalleryByContainer(container); gallery.setAttrs({ "autoplay":true, "autoplayOptions": { "timeout":3000, /*make this higher to decrease speed, lower to increase it*/ "randomize": true } }); } catch (e) { console.error("Could not configure Gallery autoplay.", e); } }); </script> Link to comment
tuanphan Posted July 17, 2021 Share Posted July 17, 2021 Hi. I see it worked here. 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment