On my homepage I would like the top banner to be a video which auto plays when the page loads. Removing the controls and play button. The video file has no sound.
I understand you need to change the code for this.
Could anyone provide me with a step-by-step and the code to do this (I haven’t updated code before)
If you want auto plays video banner when the page loads, you need to add the ‘autoplay’ attribute to the video tag to automatically play the video and the ‘loop’ attribute to make it repeat after it ends (if you want).
To hide the video time and controls at the bottom of the video in a Shopify store banner, you can remove the “controls” attribute from the
By removing the “controls” attribute, the video controls, including the time display, won’t be visible, allowing the video to play without any on-screen controls.
You can try this out…
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
I came across your solution while searching and it works great on desktop, but on mobile, I know typically the browser won’t autoplay, but in this case, when I hit the play button, the video still doesn’t play. I need to hit it multiple times and it doesn’t always work. Sometimes when I scroll up or down after pressing play, the video will start. Would you happen to know why? Thanks.