Personalized checkout and custom promotions with Shopify Scripts
Hi!
I added some background videos to my store using the following custom liquid code and they look grear, but when changing into mobile the size is too small for the screen. Also the autoplay doesn't work on mobile as well 😞
Can anyone help me to set the code to resize and autoplay when using mobile?
This is the code that I used:
<style>
video {
display: block;
margin: 0 auto;
width: 100%;
height: 50%;
}
</style>
<video autoplay loop playsinline muted>
<source src="VIDEO URL HERE">
</video>
This is my store
https://doufoods.com/
password: douweb
Perfect size for desktop
Way too small for mobile and no autoplay
Thank you in advance!
Thank you for reaching out and posting this question!
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
Thank you in advance @KetanKumar!
This is my site
https://doufoods.com/
password: douweb
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