michaelpga Posted April 9, 2022 Posted April 9, 2022 Site URL: https://www.chantellewilliams.com.au Hello SS Community,' I would like to auto-scroll the Gallery Slideshow reels and testimonials on my site. Pages to autoscroll: Home / Coaching / Massage + Energy Work Can I do this on a basic plan or do I have to upgrade?? www.chantellewilliams.com.au Password: CW2022 Version 7.1
tuanphan Posted April 10, 2022 Posted April 10, 2022 Try adding to Settings > Advanced > Code Injection > Footer <script> (function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } })(() => { if (window.location == window.parent.location) { const reelControls = document.querySelectorAll('.gallery-reel-control [data-next]'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </script> michaelpga 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
michaelpga Posted April 12, 2022 Author Posted April 12, 2022 On 4/11/2022 at 9:43 AM, tuanphan said: Try adding to Settings > Advanced > Code Injection > Footer <script> (function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } })(() => { if (window.location == window.parent.location) { const reelControls = document.querySelectorAll('.gallery-reel-control [data-next]'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </script> Thank you @tuanphan this worked for the Gallery Reels on the 'Massage + Energy' / 'Book Now' pages. However, the text list slider on page 'Coaching' page does not yet automatic scroll?
tuanphan Posted April 18, 2022 Posted April 18, 2022 On 4/12/2022 at 2:43 PM, michaelpga said: Thank you @tuanphan this worked for the Gallery Reels on the 'Massage + Energy' / 'Book Now' pages. However, the text list slider on page 'Coaching' page does not yet automatic scroll? Hi, You mean this text list? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
michaelpga Posted April 19, 2022 Author Posted April 19, 2022 On 4/18/2022 at 5:42 PM, tuanphan said: Hi, You mean this text list? Yes please, that's correct.
tuanphan Posted April 22, 2022 Posted April 22, 2022 On 4/19/2022 at 6:11 PM, michaelpga said: Yes please, that's correct. With text, use this code <script> (function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } })(() => { if (window.location == window.parent.location) { const reelControls = document.querySelectorAll('.user-items-list-banner-slideshow__arrow-button--right'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment