Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I'm embedding a video which I have saved on Shopify as a file onto my homepage.
The video thumbnail works absolutely fine on Chrome, and covers the entire frame.
However, on Safari, the video thumbnail is tiny, and only upon clicking on the tiny thumbnail, does the video fill in the entire frame.
Does anyone know what I can change in the code to make this work on Safari as well? I got the code from this YouTube video: https://youtu.be/671Gins9lb8
My code is below (please note I can't share the link to the actual file or the website):
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; autoplay loop muted} .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class="embed-container"><iframe src="https://cdn.shopify.com/videos/[FILE PATH].mp4" frameborder="0" allowfullscreen=""></iframe></div>
Hi!
I hope you are doing good and welcome to the Shopify Community!
This is MS Web Designer (Top Rated Shopify Certified Experts and eCommerce Consultant from India & Singapore).
Can you please share your website URL?
Thanks
If it’s helpful to you, please mark it as a solution.
Need Help with Shopify Design, Migration, Speed, or Custom tasks?
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025