Shopify themes, liquid, logos, and UX
Hi,
I've added a video for my product. The same as I would for an image. But I want to to play automatically in a loop and to not have controls. Can someone help me? Stubble&co have done this perfectly:
Hi @kesmon ,
Welcome to the Shopify community. I am Shopify Partner here to help you.
I opened the URL you pasted above. The video seams to play auto and in loop as well, it is also not showing any controls on video. I think it's working correct. Just sharing a screenshot here if I am checking the correct video.
Thanks
Hi Kesmon,
You'll need to turn off the controls setting inside the Theme's code. As for autoplay, your theme already has autoplay in it, it just needs to be changed.
Then you might want to be aware that modern browsers block audio (or videos with an unmuted audio track) from autoplaying, as sites that automatically play audio can be an unpleasant experience for users.
Let me know if you need further help or you have any questions 🙂👍
Hi Paul,
Thanks for your reply.I can't seem to find this piece of code. How do I turn off the controls in the theme's code? What do I change the: controls:"controls" to?
Hi Kesmon, inside the Code Editor for the theme, open the file named product-thumbnail.liquid, then by scrolling down to number 144 or 145. You'll find this piece of code
After that, just change controls: true into controls: false
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024