A user wants to add a full-width video background banner to their Shopify store, similar to how image banners work, but finds the default video options inadequate.
Three implementation approaches suggested:
Custom code editing - Insert HTML5 video code into theme files (header.liquid or image-banner.liquid) with CSS styling for full-width display
Shopify apps - Use third-party apps like “Video Background” or “Easy Video” for no-code solutions
Theme features - Some themes have built-in video banner support through the theme customizer
Implementation challenges reported:
Original poster placed code in header.liquid, causing it to appear on all pages and breaking the mobile burger menu
Another user successfully added video but couldn’t restrict it to homepage only, even when placing code in theme.liquid
One user reports buttons won’t disappear on scroll and overlap with mobile menu
Current status: The discussion remains open with unresolved issues around page-specific display and mobile menu conflicts. A YouTube tutorial and detailed blog article with code snippets have been shared as resources.
Summarized with AI on October 30.
AI used: claude-sonnet-4-5-20250929.
Adding a full-width video banner to your Shopify store can definitely enhance the visual appeal and engagement on your site. It’s a great idea, and I can guide you on how to implement it.
The easiest way to add a full-width video is by editing your theme’s code to include a video element in the header or wherever you’d like the video banner to appear. Here’s a general step-by-step guide on how to do this:
Choose Your Video: Make sure your video is high quality and optimized for web use. It should be hosted on a platform that allows embedding, like YouTube or Vimeo, or hosted directly in your Shopify Files section.
Edit Your Theme Code:
From your Shopify admin dashboard, go to Online Store > Themes.
Find the theme you want to edit, and click Actions > Edit code.
You’ll want to add the video code to the header.liquid file or directly in the index.liquid file if you want it on the homepage only.
Insert the Video Code: You can use HTML5 to embed the video directly. Here’s a sample code snippet:
Replace “YOUR_VIDEO_URL.mp4” with the actual path to your video. If you’re using a video from YouTube or Vimeo, you’ll need to use their specific iframe embed code instead.
Adjust the Style: The CSS in the sample ensures the video is full-width and covers the designated area, much like a full-width image banner. You might need to adjust the CSS to fit your specific theme and design needs.
Test Your Video: After saving the changes, preview your theme to make sure the video looks and behaves as expected across different devices and browsers.
Publish: If everything looks good, publish your changes.
If you’re not comfortable editing theme code directly, you might consider using a Shopify app designed for adding video backgrounds or banners. Apps like “Video Background” or “Easy Video” can provide more control and features without needing to touch the code.
I didn’t know where to paste the code so I put it in Header.liquid right before the JASON code started. It’s now part of my header and I can no longer view the burger menu on mobile.
also, I don’t want it on every page but I can’t find index.liquid? Where is that located?
These are video banners that you can add directly to your theme by customizing the code. They offer a lot of flexibility but require some coding knowledge.
Type 2: Video Banners Using Apps
Different apps are available to add video banners without needing to code. They come with pre-built templates and drag-and-drop features.
Type 3: Video Banners Using Themes:
Some Shopify themes come with built-in support for video banners. This method is the simplest, as it does not require any coding or third-party apps. You can add a video directly through the theme customizer, making it an easy and efficient option.
hi, tried the method above, no issue in the video appearing on the website. but it seems I cant set it as appear only on homepage and not on all pages. tried to paste the code in theme.liquid file but still the same. please advise
I used this for my store, it sorta worked. The button wont disappear after you scroll down and will appear on the hamburger mobile menu. Would be a 10/10 if that feature could be patched.