All things Shopify and commerce
anyone know how to get a video to continually play without having to press the play button, I want it to resemble a gif
hi @Ecomowner
You can achieve that by embedding the video with the Autoplay, Loop and Muted attributes.
Here's an example of how you can add it in Shopify's Liquid code:
<video autoplay loop muted playsinline>
<source src="{{ 'your-video.mp4' | asset_url }}" type="video/mp4">
Your browser does not support the video tag.
</video>
Key Notes:
If you're adding this via a Shopify theme's section or block, you can reference the video file directly from your assets folder or via a URL. Let me know if you need more guidance!
Dotsquares Ltd
Problem Solved? ✔ Accept and Like solution to help future merchants.
Hi,
Hope this will help
If your theme has a Video Section, add a video and look for an "Autoplay" option and turn it ON.
Other method you can use following example code (theme.liquid)
<video autoplay loop muted playsinline>
<source src="your-video-url.mp4" type="video/mp4">
</video>
It's pretty simple.
Edit Your Theme:
Add the Video Code:
<video autoplay loop muted playsinline style="width: 100%;">
<source src="https://cdn.shopify.com/s/files/.../yourvideo.mp4" type="video/mp4">
</video>
Test on both desktop and mobile devices to confirm compatibility.
Important Notes:
Forgot to mention that it's very important to properly encode a video before uploading. I highly recommend using the handbrake.fr tool (it's 100% free) and adding the highlighted settings to your encoding flow:
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025