New Shopify Certification now available: Liquid Storefronts for Theme Developers

Play button need to press to play the video

1 0 0

I'm using an impulse theme 


I have placed a video on the home banner 

always i have to press the play button to play the video and the same on mobile

Screenshot 2023-11-13 121831.png

please help to fix the issue 


this is the code I used


<video id="Mp4Video-f23891aa-1f4e-42aa-874f-22c9b764805f" src="" autoplay="autoplay" loop="loop" unmuted="unmuted" playsinline="playsinline" controls="controls" preload="none"></video>

Reply 1 (1)
9 2 2

Hi ^^, try this:



<video id="Mp4Video-f23891aa-1f4e-42aa-874f-22c9b764805f"
    autoplay="autoplay" loop="loop" playsinline="playsinline"
    preload="none" muted="muted">
    document.addEventListener('DOMContentLoaded', function() {
        var video = document.getElementById('Mp4Video-f23891aa-1f4e-42aa-874f-22c9b764805f');;



I added a script to play the video when the page loads. Let me know if that works for you.

Adenan K.
Helping with your technical queries! If I've assisted you, consider buying me a little espresso (click here ✌️) to support my efforts.
Happy coding!