dotandpeg Posted February 22 Share Posted February 22 Hi, I have lots of looping videos on my site, but I have one that will not loop even though I have selected that in the settings. Any ideas why it might not be working? https://chameleon-copper-hgx3.squarespace.com/work/cult-wine-investment gravy2024 It's this video (see screengrab). Thanks Laura Link to comment
Ziggy Posted February 22 Share Posted February 22 That's really strange, with uploaded videos I've never had a problem with a loop not working. What settings have you used? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Solution dotandpeg Posted February 23 Author Solution Share Posted February 23 Hi @Ziggy, I've found the issue as I realised none of my videos are looping. I added the below code to my sites' footer injection as I only wanted the homepage video on desktop and mobile to loop once but it was affecting everything. I have moved the code to my homepage advanced settings and this has fixed the issue. Thanks <!-- LOOP VIDEO ONCE HOMEPAGE--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> jQuery(document).ready(function($){ setTimeout( function() { $('video').removeAttr('loop'); }, 5000); }); </script> <!-- LOOP VIDEO ONCE HOMEPAGE--> 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