All things Shopify and commerce
Hi There,
I am hoping to seek some expert coding on removing the 'play' symbol from the Shopify embedded video I have playing on my Homepage. I need it to autoplay on loop when traffic hits my site without them having to press play.
I am using the theme 'Refresh' I have tried to source this information myself with no luck.
Thanks in advance & hoping someone can help.
Solved! Go to the solution
This is an accepted solution.
Hi,
According to your request, I understand you need to use the video as background, and it will automatically play for every customer who enters your store, and it will repeat endlessly.
Try this code, I hope it works for you:
in there:
style="pointer-events:none;" -> so that users cannot influence the video (cannot click or drag)
loop="" -> repeat
muted="" -> turn off the sound, currently most browsers do not allow videos to automatically play when the sound is turned on (must be turned off to automatically play)
no-controls="" -> hides the control bar
autoplay="" -> autoplay
This is an accepted solution.
Thank you so much Gmeo, I will give it a try. Quick question, is this in the theme.liquid?
This is an accepted solution.
Hi,
According to your request, I understand you need to use the video as background, and it will automatically play for every customer who enters your store, and it will repeat endlessly.
Try this code, I hope it works for you:
in there:
style="pointer-events:none;" -> so that users cannot influence the video (cannot click or drag)
loop="" -> repeat
muted="" -> turn off the sound, currently most browsers do not allow videos to automatically play when the sound is turned on (must be turned off to automatically play)
no-controls="" -> hides the control bar
autoplay="" -> autoplay
This is an accepted solution.
Thank you so much Gmeo, I will give it a try. Quick question, is this in the theme.liquid?
You can place the code in the "Custom Liquid" section, and place it anywhere you want on your store
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025