Hero Banner

Create a stunning first impression with a full-width hero featuring high-quality images or video, overlay text, and compelling call-to-action buttons.

πŸ“ sections/hero-banner.liquid⏱️ 5 min setup

Overview

The Hero Banner is typically the first thing visitors see when they land on your store. It sets the tone for your brand and encourages visitors to explore further. Brave's Hero Banner supports both static images and autoplaying video backgrounds with sophisticated animation effects.

πŸ–ΌοΈ

Image or Video

Use high-quality images or looping background videos
πŸ“±

Mobile Optimized

Separate mobile images for perfect display on all devices
✨

Animation Effects

Reveal, zoom, and parallax effects on scroll
🎯

Flexible Positioning

9-point grid for precise content placement

When to Use

  • Homepage β€” Make a bold first impression with your brand
  • Collection landing pages β€” Introduce a collection with lifestyle imagery
  • Campaign pages β€” Promote seasonal sales or new launches
  • About page β€” Tell your brand story with visual impact

Quick Setup

1

Add the Hero Banner

In the Theme Editor, click Add section β†’ Hero banner. Position it at the top of your page.

2

Upload your hero image

Click Select image and upload a high-quality image. Recommended size: 2400Γ—1200px or larger for crisp display on all screens.

3

Add your content

Enter your Heading text and optional Subheading. Add a Button with text and link for your call-to-action.

4

Adjust the overlay

Enable Show overlay and adjust the opacity to ensure text is readable against your image.

πŸ’‘

For the sharpest results, use images at least 2x the display size. A 2400px wide image displays perfectly on 1200px screens.


Section Settings

Media

SettingTypeDefaultDescription
TypeselectImageChoose between Image or Video mode. Video requires MP4 format.
Desktop imageimage-The main image for desktop and tablet. Recommended: 2400Γ—1200px minimum.
FitselectCover'Cover' fills the entire area (may crop edges). 'Contain' shows the full image (may show background).
Different mobile imagecheckboxfalseEnable to upload a separate portrait-oriented image for mobile devices.
Mobile imageimage-Optional portrait image for mobile. Recommended: 1080Γ—1920px (9:16 ratio).
Videovideo-Background video file (MP4 format). Keep under 10MB for performance. Videos autoplay muted.
ℹ️

Video Tips: Background videos should be short loops (5-15 seconds), muted, and compressed. Use tools like HandBrake to reduce file size.

Content

SettingTypeDefaultDescription
HeadingrichtextHero banner headingThe main title text. Supports bold, italic, and line breaks for styling.
Subheadingrichtext-Optional supporting text below the heading.
Button texttext-Call-to-action button label. Leave empty to hide the button.
Button linkurl-Where the button links to. Use collection, product, or page URLs.
Secondary button texttext-Optional second button for alternative actions.
Secondary button linkurl-Link for the secondary button.

Layout

SettingTypeDefaultDescription
PositionselectCenterPosition content using a 9-point grid: Top Left, Top Center, Top Right, Center Left, Center, Center Right, Bottom Left, Bottom Center, Bottom Right.
Text alignmentselectCenterAlign text within its container: Left, Center, or Right.
Account for header heightcheckboxfalseSubtract the header height from the banner so content fits perfectly in the viewport. Enable when using with a transparent header.
Full viewport heightcheckboxtrueMake the banner fill the entire screen height. Disable for a shorter banner.
Custom heightrange70vhSet a specific height when full viewport is disabled. Range: 40–90vh.

Animation & Visuals

SettingTypeDefaultDescription
Image effectselectRevealAnimation effect for the background image as the page loads or scrolls.
Text effectselectNoneAnimate text with a fade-up effect on page load.
Show overlaycheckboxtrueAdd a dark overlay to improve text readability on busy images.
Overlay colorcolor#000000Color of the overlay. Black works for most images.
Overlay opacityrange30%Control the darkness of the overlay. 30-40% is usually ideal. Range: 0–80%.

Image Effect Options

None
No animation, image displays immediately
Zoom
Slow, subtle zoom effect as the page scrolls
Parallax
Image moves slower than scroll for depth effect

Performance

SettingTypeDefaultDescription
Primary hero (eager load)checkboxtrueEnable if this is the first section on the page. Improves LCP score by prioritizing image loading.
⚠️

Only enable Primary hero for the topmost section. Enabling it for below-fold sections actually hurts performance.


Use Case Examples

Brand Statement Hero

  • Heading: "Crafted for Modern Living"
  • Subheading: "Sustainable luxury, designed to last"
  • Button: "Shop Collection" β†’ /collections/all
  • Position: Center
  • Overlay: 35% opacity
  • Effect: Reveal

Sale Announcement

  • Heading: "Summer Sale"
  • Subheading: "Up to 50% off everything"
  • Button: "Shop Sale" β†’ /collections/sale
  • Position: Bottom Left
  • Overlay: 40% opacity (for bold text visibility)

Video Background

  • Type: Video
  • Video: Looping lifestyle clip (10 seconds, under 8MB)
  • Heading: Minimal text
  • Position: Bottom Center
  • Overlay: 20% opacity

Best Practices

Image Selection

  1. Use high-resolution images β€” At least 2400px wide for sharp display on retina screens
  2. Consider the focal point β€” Key subjects should be centered since edges may be cropped
  3. Leave space for text β€” Avoid busy areas where your heading will appear
  4. Match your brand β€” Lifestyle imagery creates emotional connection

Content Strategy

  1. One clear message β€” Don't overload with multiple ideas
  2. Strong CTA β€” Tell visitors exactly what to do next
  3. Keep text minimal β€” Let the image do the heavy lifting
  4. Create urgency β€” Time-limited offers drive action

Mobile Optimization

  1. Always test on mobile β€” Portrait orientation changes the composition
  2. Use separate mobile images β€” Reframe key subjects for vertical display
  3. Shorten headlines β€” Long text wraps awkwardly on small screens
  4. Increase overlay β€” Smaller screens need better contrast
πŸ’‘

Pro tip: Take a screenshot of your hero on mobile and ask someone unfamiliar with your brand if they understand the message in 3 seconds.


Troubleshooting

Image looks blurry

  • Upload a higher resolution image (2400Γ—1200px minimum)
  • Check that the original file isn't compressed too heavily
  • Ensure the aspect ratio matches your banner dimensions

Text is hard to read

  • Enable Show overlay if disabled
  • Increase Overlay opacity to 35-45%
  • Choose a position where the image is less busy
  • Use contrasting text colors

Image crops incorrectly

  • Set the Focal point in Shopify's media editor (when uploading)
  • Use Fit: Contain instead of Cover
  • Try a different Position for your content
  • Upload a separate mobile image with correct framing

Video not playing

  • Ensure the file is MP4 format with H.264 encoding
  • Check file size (under 10MB recommended)
  • Videos autoplay mutedβ€”they cannot have sound
  • Some browsers block autoplay on slow connections

Hero appears behind the header

  • Enable Account for header height
  • Check that your header is set to Overlay on hero
  • Verify header z-index isn't conflicting

Animation not playing

  • Check if Image effect is set to "None"
  • Animations may be disabled if user has Reduced motion enabled
  • Verify JavaScript is enabled in the browser