All things Shopify and commerce
Hello!
I'm experiencing an issue with my product videos on my Shopify store. In my development environment, the video backgrounds are displaying correctly with a light gray background (#F6F6F6), but when the same videos are uploaded to Shopify and displayed on the main product page, the background changes to white.
Has anyone else encountered this issue with video backgrounds changing in Shopify? Any suggestions on how to maintain my original background color (#F6F6F6) when the videos are displayed in the Shopify environment?
Thanks in advance for your help!
Hi,
Hope this will help
- Wrap Video in a Parent Box
Code example:
<div className="bg-[#F6F6F6] p-2">
<video
className="w-full h-auto"
controls
src="/path-to-video.mp4"
/>
</div>
- Use inline CSS for style
- Check for Theme Conflicts
- Use Video Non-Transparent
- Apply a Tailwind Safelist Rule
- Check video element styles using browser dev tools
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025