tommb Posted June 17, 2022 Share Posted June 17, 2022 Site URL: https://www.upcyclepianocraft.com/ Hi there, I've added a slide show of hero shots to my home page and I'd like to get them to advance automatically but there's no setting for that. I'm kinda surprised! Is there a way to do this in 7.1? Link to comment
tuanphan Posted June 20, 2022 Share Posted June 20, 2022 On 6/18/2022 at 5:45 AM, tommb said: Site URL: https://www.upcyclepianocraft.com/ Hi there, I've added a slide show of hero shots to my home page and I'd like to get them to advance automatically but there's no setting for that. I'm kinda surprised! Is there a way to do this in 7.1? Add to Settings > Advanced > Code Injection > Header <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 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
tommb Posted June 22, 2022 Author Share Posted June 22, 2022 Thank you so much @tuanphan, this is brilliant! 💥 Link to comment
Applified Posted September 27, 2022 Share Posted September 27, 2022 This was perfect! Thank you! 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