Build outfits, bundle & sell more with Snazzy ThemeTry It Free
How to Add the Shopify Video to Banner Section tutorial futured image for blog content

Shopify Video Banner Section: 3 Ways to Add One (2026 Guide)

Your homepage banner is the first thing every visitor sees. A static image sits there. A video moves, demonstrates, and holds attention. The problem is Shopify does not give you a single obvious button to add a video to your banner section. The path depends on which theme you are using and how much control you need.

There are 3 ways to add a video to the Shopify banner section: the Dawn theme’s built-in video option (no code, no app), custom Liquid code in image-banner.liquid (full control, developer method), and the Slider Revolution app (templates, YouTube/Vimeo support, no coding). This guide covers all three, with screenshots, complete code, and a troubleshooting section for the most common issues.

Quick Answer

To add a video to the Shopify banner section without code or apps, go to Online Store > Themes > Customize, open the Image Banner section, and switch the media type from image to video (available in Dawn and most Online Store 2.0 themes).

Upload your MP4 file through Settings > Files, then paste its URL into the video field. For autoplay background videos with a muted loop, use the custom Liquid method explained below.

If you prefer ready-made templates, use Slider Revolution. For the best performance, use an MP4 (H.264) file under 50 MB and provide a fallback image for mobile devices.

Key Takeaways

  • Dawn theme and most Online Store 2.0 themes support video banners natively without requiring an app.
  • The custom Liquid approach modifies image-banner.liquid to add an autoplay background video with a configurable URL field in the theme editor.
  • Slider Revolution supports YouTube, Vimeo, and self-hosted video banners with 200+ ready-made templates.
  • Use MP4 (H.264) for maximum browser compatibility. WebM is a good secondary format for smaller file sizes.
  • Mobile browsers block autoplay videos with sound. Always configure autoplay muted loop and include a fallback image for smaller screens.
  • To prevent layout issues, apply overflow: hidden to the banner container and object-fit: cover to the video element.
  • Pair your video banner with a sale banner or a countdown banner to increase urgency during promotions.

Types of Shopify Video Banners

Before choosing a method, it helps to know what kind of video banner you are building. The three types have different setup requirements and different effects on your store.

Type Description Best Method
Background video Autoplay muted video loop displayed behind your banner text and CTA. Creates an ambient visual effect without playback controls. Custom Liquid code
Full-width video section Replaces the banner image with a full-width video that plays inline without a text overlay. Dawn theme native or custom Liquid
YouTube/Vimeo embed banner Embeds a YouTube or Vimeo player inside the banner area. Visitors manually start video playback. Slider Revolution app
Product video banner Displays a short product demo video in the hero banner, typically linking to a product or collection page. Any method with a clickable banner link

If you need the banner to be clickable to a product or collection page after adding the video, see our guide on how to make an image banner clickable on Shopify. Video banners follow the same linking approach.

Method Comparison: Which One to Use

Feature Dawn Native Custom Liquid Slider Revolution
Coding needed None Yes (Liquid + CSS) None
Cost Free Free From $9/mo
Video source Shopify Files (MP4) Shopify Files (MP4) YouTube, Vimeo, MP4
Autoplay background Yes (muted loop) Yes (muted loop) Yes
Templates None None 200+
Mobile fallback image Built-in Manual CSS Built-in
Best for Fastest setup on Dawn and OS 2.0 themes Custom themes and headless Shopify stores YouTube, Vimeo, and advanced animated banners

Method 1: Dawn Theme Built-In Video (No Code, No App)

If your store uses the Shopify Dawn theme (or any OS 2.0 theme like Craft, Sense, Refresh, or Ride), you can add a video to the banner section directly in the theme customizer. No code edits, no third-party apps.

OS 2.0 requirement: This method only works with Shopify Online Store 2.0 themes. If you’re using an older theme such as Debut, Brooklyn, or Supply, either use the custom Liquid method or upgrade to a free OS 2.0 theme like Dawn before continuing.

Step 1: Upload Your Video to Shopify Files

Before you can use a video in the banner, it needs to be hosted on Shopify’s CDN. Go to Settings > Files and click Upload Files. Select your MP4 file. Once uploaded, click the file link to copy its CDN URL. You will need this in the next step.

file upload shopify

File size limit: Shopify Files supports video uploads up to 1 GB. For the best banner performance and faster page loading, keep your video under 20 MB. See the video format guide below for recommended compression tips.

Step 2: Open Theme Customizer

Go to Online Store > Themes and click Edit Theme.

Step 3: Select the Image Banner Section

In the left sidebar, click the Image Banner section (usually the first section on the homepage). The section settings will open on the left.

Step 4: Switch Media Type to Video

In the Image Banner settings, look for the First media or Background media option. Click Select media, then choose Video instead of Image. Paste the Shopify CDN URL from Step 1 into the video URL field, or upload directly from the media picker.

Dawn theme tip: Dawn’s Image Banner section includes a dedicated Mobile layout option. Set a still image as the mobile media to avoid autoplay limitations on iOS devices. This provides the simplest and most reliable mobile fallback without requiring any custom CSS.

Step 5: Set Autoplay and Loop Options

In the banner section settings, enable Autoplay and Loop. The video will be muted automatically when autoplay is on (browser requirement). Add your overlay text, button, and heading as usual. These sit on top of the video.

Step 6: Save and Preview

Click Save. Preview the banner on desktop and mobile before publishing. On mobile, verify your fallback image shows instead of the video (especially on iOS Safari where autoplay is restricted).

Method 2: Custom Liquid Code (Full Control)

This method adds a video background field directly to the Image Banner section by editing the theme’s Liquid files. It works on any theme that has an image-banner.liquid section file. After the edit, you get a new “Video Background Banner” field in the theme customizer that accepts a Shopify Files URL.

Back up your theme first. Before making any changes, go to Online Store > Themes, click the three-dot menu next to your active theme, and select Duplicate. Test all modifications on the duplicated theme until you’re completely satisfied before publishing it.

Here is what the finished result looks like:

video background

Step 1: Open Theme Code Editor

Go to Online Store > Themes. Click the three-dot menu on your active theme and select Edit code.

edit code of shopify

Step 2: Open image-banner.liquid

In the left sidebar, open the Sections folder and click image-banner.liquid to open it.

Step 3: Add the Video HTML Block

Find the opening of the banner’s content area (usually near the top of the section, inside the main <div>). Paste this code block before the existing image/content markup:

{%- if section.settings.my_video_background_banner != blank -%}
  <div class="my_video_background_banner">
    <video autoplay muted loop playsinline id="myVideoBackground">
      <source src="{{ section.settings.my_video_background_banner }}" type="video/mp4">
    </video>
  </div>
{%- endif -%}

embeded video code

Note the playsinline attribute. It is required for autoplay to work correctly on iOS Safari. Without it, the video opens in full-screen mode on iPhone instead of playing inline within the banner.

Step 4: Wrap the Existing Image Code with a Condition

To hide the default banner image when a video is active, wrap the existing image code in a conditional check:

{%- if section.settings.my_video_background_banner == blank -%}

  {# your existing image banner code goes here #}

{%- endif -%}

starting ending code

Step 5: Add the Schema Setting for the Video Field

Scroll down to the {% schema %} block in the file. Inside the "settings" array, add this object to create the video URL input field in the theme customizer:

{
  "type": "url",
  "id": "my_video_background_banner",
  "label": "Video Background Banner"
},

schema

Step 6: Add the CSS to base.css

Open Assets > base.css and paste the following CSS at the end of the file:

.my_video_background_banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.my_video_background_banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

base css code

Why object-fit: cover matters: Without it, the video may stretch, become distorted, or overflow its container. Using object-fit: cover keeps the video properly scaled, while overflow: hidden on the wrapper prevents any part of the video from extending outside the banner boundaries.

Step 7: Save Both Files

Click Save in the code editor after editing each file.

Step 8: Upload the Video and Paste the URL

Go to Settings > Files and upload your video file. Once uploaded, copy the file URL. Then go to Online Store > Themes > Customize > Image Banner. You will now see a new “Video Background Banner” field in the section settings. Paste the video URL into that field.

Shopify Video to Banner Section

Step 9: Save and Test

Click Save. Test the banner on desktop and mobile. The video should autoplay muted in a loop, contained within the banner area. If you need to add a CTA button on top, make sure your banner text container has a higher z-index than the video wrapper (z-index: 1 on the content layer is usually enough).

You can also upload HTML files to Shopify via Settings > Files to host auxiliary scripts alongside your video content.

Watch the video: Embedding videos using custom code 

Method 3: Slider Revolution App (YouTube, Vimeo, Templates)

Slider Revolution is the best choice when your video banner needs to use a YouTube or Vimeo source, or when you want to start from a professionally designed template instead of building from scratch. It also gives you full animation control, overlay text effects, and CTA button placement without writing any code.

If you already use Slider Revolution for a hero slider or sale banner, adding a video banner is done from the same dashboard with no extra configuration.

slider revolution shopify featured list

Design your Shopify store with advanced animation effects, special fx, dynamic content, and so on.

  • Image slider, banner, layer, video, hero, carousel, pages, theme sections
  • 200+ ready templates and addons
  • Compatible with Shopify 2.0 online store themes and popular landing page builder
  • Multilingual, RTL-supported, banner, landing page builder, theme section store
  • Use social media content in your slider from YouTube, Vimeo, Facebook, Instagram
Shopify App Store Badge Final Black

Step 1: Access Slider Revolution Templates

Open the Slider Revolution app from your Shopify admin. Click New Slider or Template Library. Search for “video” to filter banner templates that feature video as the primary content.

shopify slider rev dashboard

Step 2: Install the Template

Click on a template and select Install Template. Slider Revolution imports the template with all its slides, animations, and settings ready to customize.

Step 3: Add a YouTube Video Source

In the editor, click the slide background or the video layer. In the Source settings panel on the right, select YouTube Video and paste your YouTube video ID (the characters after ?v= in the YouTube URL).

Step 4: Preview and Publish

Click Preview to verify the video loads and plays correctly. Then click How to Publish to get the publishing guide.

how to publish a slider

Step 5: Copy the Shortcode

Copy the shortcode ID from the publishing guide by clicking the Copy button.

slider revolution publishing process

Step 6: Add to Your Shopify Theme

Click Go To Store, which opens the theme customizer. Add the Slider Revolution section to your page and paste the shortcode. Click Save.

slider revolution online setup

Using a Local (Self-Hosted) Video

To use a video file from Shopify Files instead of YouTube: in the Slider Revolution editor, select the video layer, set the source type to HTML5, then click Media Library and select your uploaded video file.

slider rev upload video

This method also supports video carousels if you want multiple video clips in a scrollable format instead of a single banner. The same shortcode system applies.

Watch the Video to add Banner Section using Slider Revolution App

Video Format and Size Guide for Shopify Banners

The video format you use affects how fast your banner loads and whether it plays correctly across browsers and devices. Here are the specs that work best for Shopify banner sections.

MP4 (H.264)

Recommended

Offers the best browser compatibility and works in Chrome, Safari, Firefox, Edge, and iOS. Use MP4 (H.264) as the primary format for Shopify video banners.

WebM (VP9)

Secondary

Produces smaller files than MP4 at similar quality. Supported in Chrome and Firefox but not fully in Safari, making it best as a secondary source alongside MP4.

MOV

Avoid

Apple’s native video format. Although it works well in Safari, browser compatibility is inconsistent elsewhere. Avoid using MOV files for Shopify web banners.

GIF

Avoid for banners

GIFs are much larger than MP4 videos at the same duration. A short GIF can be 10 to 15 times larger than an MP4, so use video files instead for faster loading.

Setting Recommended Value Why
File size Under 15 MB for background videos, under 50 MB for featured videos Keeps banner load times under two seconds on typical internet connections.
Resolution 1920 × 1080 px (maximum) or 1280 × 720 px 720p is usually sufficient for background banners while reducing download size.
Duration 6 to 30 seconds for looping background videos Short loops repeat smoothly and prevent unnecessarily large files.
Bitrate 2000 to 5000 kbps Provides a good balance between video quality and file size for web delivery.
Audio Remove the audio track Autoplay requires muted video, and removing audio further reduces file size.

Banner image size reference: If you’re using a fallback image with your video banner, follow our Shopify banner image size guide for the correct dimensions. For hero banners, 1920 × 1080 px is the recommended size. You can also read our best image sizes for Shopify guide for recommended dimensions across every section type.

Mobile Autoplay and Fallback Image

Mobile browsers, particularly iOS Safari, restrict autoplay video in ways that desktop browsers do not. If you do not handle mobile correctly, your video banner will show nothing on iPhone, or it will trigger a fullscreen video player, breaking the page layout.

The Three Rules for Mobile Video Autoplay

1. Always use muted. Browsers will not autoplay a video with sound unless the user has already interacted with the page. The muted attribute is the only reliable way to get autoplay working across all browsers.

2. Always use playsinline. On iOS, video elements without playsinline will launch in the native fullscreen player instead of playing inline in the page. Your banner layout breaks completely. Add playsinline to every video tag.

3. Set a fallback image for mobile. Even with the correct attributes, some users have data saver enabled or are on slow connections where video buffering creates a blank banner. A fallback image ensures the banner always shows something. In the Dawn theme, set a Mobile media image in the banner settings. In the custom Liquid method, use a CSS media query to hide the video container on small screens and show a background image instead:

@media (max-width: 768px) {
  .my_video_background_banner {
    display: none;
  }
  .banner-section {
    background-image: url('YOUR-FALLBACK-IMAGE-URL');
    background-size: cover;
    background-position: center;
  }
}

Performance note: Even if a video is hidden with CSS on mobile devices, most browsers still download the file. To reduce unnecessary data usage, load background videos only on desktop with JavaScript, or use the Dawn theme’s built-in desktop and mobile media settings, which automatically serve different media for each device.

For stores with product-focused banners, consider pairing the video banner with a product slider below the fold. The video captures attention at the top; the product slider converts it further down the page.

Troubleshooting Common Issues

Video overflows outside the banner onto other page sections

Cause: The video wrapper is missing overflow: hidden, or the video element doesn’t use object-fit: cover.

Fix: Add overflow: hidden to your banner wrapper, apply object-fit: cover to the video element, and make sure the parent banner container uses position: relative so the absolutely positioned video stays inside the banner.

Video doesn’t autoplay on iPhone or iPad

Cause: The playsinline attribute is missing, or the video still contains an audio track.

Fix: Add playsinline to the <video> element and remove the audio track using tools like HandBrake or FFmpeg before uploading the file.

Banner image still appears behind the video

Cause: The image isn’t wrapped in the conditional Liquid check, or the image is stacked above the video with a higher z-index.

Fix: Wrap the image inside the blank-check condition, apply z-index: 0 to the video wrapper, and verify no other banner elements have a higher stacking order.

Video is not centered inside the banner

Cause: The video element is missing object-position: center.

Fix: Add object-position: center center together with object-fit: cover to keep the important part of the video centered while cropping.

Video banner setting doesn’t appear in the theme editor

Cause: A JSON syntax error exists in the schema, or the new setting was added outside the "settings" array.

Fix: Open image-banner.liquid, confirm the setting is inside the "settings" array, separate each setting with a comma, and validate the schema JSON before saving.

Most Commonly Asked Questions

How do I add a video to the Shopify banner section?

There are 3 ways: (1) In the Dawn theme or any OS 2.0 theme, go to Customize > Image Banner > select video as the media type and upload your MP4 file. (2) Edit image-banner.liquid to add a video background via custom Liquid code. (3) Use the Slider Revolution app to add a YouTube, Vimeo, or self-hosted video banner without coding. Method 1 is the fastest for Dawn theme users. Method 3 is best for YouTube/Vimeo sources.

What is the recommended size for a Shopify video banner?

For background video banners, use 1920 x 1080 px at 720p resolution, MP4 format, under 15 MB. For featured video banners where quality matters more, 1280 x 720 px at a higher bitrate (up to 50 MB) is acceptable. Keep the video duration between 6 and 30 seconds for smooth looping. See the full Shopify banner size guide for per-section dimension recommendations.

Why is the video not autoplaying on mobile?

Two common causes: missing playsinline attribute (required for iOS inline playback), or the video has an audio track (even a silent one). Mobile browsers require videos to be both muted and marked as inline to autoplay. Strip the audio track from your video file before uploading, and ensure your video tag includes autoplay muted loop playsinline.

Can I use a video in a Shopify slideshow section?

Yes. In OS 2.0 themes like Dawn, the Slideshow section supports video slides alongside image slides. In the Slideshow section settings, add a new slide and set the media type to video. For more advanced video carousel layouts with multiple videos in rotation, see our guide on Shopify video carousels.

What is a Shopify video background banner?

A Shopify video background banner is a full-width banner section where the background is a looping muted video instead of a static image. The video plays automatically on page load. Text, buttons, and overlays sit on top of the video. This is different from a foreground video player (where the user clicks play). Background video banners are implemented with autoplay muted loop playsinline attributes and CSS object-fit: cover to fill the section.

Need Help with Your Shopify Banner Section?

ShopiDevs builds custom Shopify sections, video banners, hero sliders, and advanced theme features. Get expert help without the guesswork or broken code.

I’m a digital marketing expert and mobile app developer with a deep understanding of Shopify App Store optimization. I contribute insightful articles on Shopify to help businesses thrive online.

Leave a Comment

4 thoughts on “Shopify Video Banner Section: 3 Ways to Add One (2026 Guide)”

  1. Hi there,
    Firstly thanks for this guide its really good.
    I am having an issue with the default image still showing over my video even tho no image is selected. Any advice?
    thanks.

  2. Hi, i’m having a few issues with the code, my video is uploading, however its not contained within the image banner area its overflowing onto other sections of my page. I also cant seem to centre the video? Its currently a draft on shopify.
    Any solutions?
    Thanks.

Scroll to Top