All things Shopify and commerce
Hello,
I've added my product and they are video templates , I would like to auto-play them in my product page rather than having the user click on the play button. Is there any way to do that? Please guide.
my product page link : https://www.excelmotions.com/products/sample-110
Solved! Go to the solution
This is an accepted solution.
Hello
Follow the steps below
1. Go to Online Store -> Theme -> Edit code.
2. Open your product-thumbnail.liquid/theme.liquid file and add script.
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelector(".deferred-media__poster-button").click();
});
</script>
After above changes, follow this below
1. Go to Online Store -> Theme ->Customize
Enable video looping
Let us know, if this solutions works for you
This is an accepted solution.
Hello
Follow the steps below
1. Go to Online Store -> Theme -> Edit code.
2. Open your product-thumbnail.liquid/theme.liquid file and add script.
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelector(".deferred-media__poster-button").click();
});
</script>
After above changes, follow this below
1. Go to Online Store -> Theme ->Customize
Enable video looping
Let us know, if this solutions works for you
Thank you soo much , it worked And if i want to enable sound by default is it possible?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024