Skip to main content
The Hero section creates impactful banner areas with support for dual media (side-by-side images/videos), custom mobile media, and flexible content positioning.

Schema Location

File: sections/hero.liquid:747-1497

Features

  • Dual media slots (2 images or videos side-by-side)
  • Separate desktop and mobile media
  • Blurred reflection effect
  • Flexible content layout (vertical or horizontal)
  • Multiple height options including full-screen
  • Custom overlay gradients
  • Support for all theme blocks (@theme, text, button, logo, etc.)

Settings

Media Configuration

select
default:"image"
Type of media for slot 1Options:
  • image - Static image
  • video - Video file
image_picker
Image for media slot 1Visible when: media_type_1 == 'image'
video
Video for media slot 1 (autoplay, loop, muted)Visible when: media_type_1 == 'video'
select
default:"image"
Type of media for slot 2Options:
  • image - Static image
  • video - Video file
image_picker
Image for media slot 2
video
Video for media slot 2

Mobile Media

checkbox
default:"false"
Enable custom media for mobile devices
checkbox
default:"false"
Stack media vertically on mobile instead of side-by-side
select
default:"image"
Media type for mobile slot 1Visible when: custom_mobile_media is enabled
image_picker
Mobile image for slot 1
video
Mobile video for slot 1
Make the entire section clickable
checkbox
default:"false"
Open link in new tab

Layout

select
default:"column"
Content arrangement directionOptions:
  • column - Vertical stacking
  • row - Horizontal alignment
checkbox
default:"true"
Force vertical layout on mobileVisible when: content_direction == 'row'
select
default:"flex-start"
Horizontal alignment for row layoutOptions:
  • flex-start - Left
  • center - Center
  • flex-end - Right
  • space-between - Space between
select
default:"center"
Vertical position for row layoutOptions:
  • flex-start - Top
  • center - Center
  • flex-end - Bottom
select
default:"center"
Vertical position for column layoutOptions:
  • flex-start - Top
  • center - Center
  • flex-end - Bottom
  • space-between - Space between
range
default:"12"
Spacing between blocksRange: 0-100px, step 1
select
default:"page-width"
Content area widthOptions:
  • page-width - Constrained to page width
  • full-width - Full viewport width
select
default:"medium"
Section minimum heightOptions:
  • auto - Fit content
  • small - Small height
  • medium - Medium height
  • large - Large height
  • full-screen - 100vh
  • custom - Custom percentage
range
default:"50"
Custom height percentageRange: 0-100%, step 1
Visible when: section_height == 'custom'

Appearance

color_scheme
default:"scheme-1"
Color scheme for text and content
checkbox
default:"false"
Enable media overlay
color
default:"#00000026"
Overlay color with alpha supportVisible when: toggle_overlay is enabled
select
default:"solid"
Overlay appearanceOptions:
  • solid - Solid color overlay
  • gradient - Gradient overlay
select
default:"to top"
Gradient directionOptions:
  • to top - Bottom to top
  • to bottom - Top to bottom
checkbox
default:"false"
Add blurred reflection effect below section (images only)
range
default:"75"
Reflection opacity percentageRange: 0-100%, step 1

Padding

range
default:"0"
Top padding in pixelsRange: 0-100px, step 1
range
default:"0"
Bottom padding in pixelsRange: 0-100px, step 1

Supported Blocks

The Hero section accepts these block types:
  • @theme - All theme blocks
  • text - Text content
  • button - CTA buttons
  • logo - Logo images
  • jumbo-text - Large text
  • spacer - Spacing control
  • group - Block containers
  • _marquee - Scrolling text

Implementation Examples

Basic Hero with Centered Content

Dual Media Hero

Mobile-Specific Media

CSS Custom Properties

The Hero section uses these CSS variables:

Presets

The Hero section includes 3 presets:

1. Default Hero

Centered content with gradient overlay Settings:
  • Height: Large
  • Color scheme: scheme-5
  • Overlay: Gradient
  • Centered alignment

2. Hero with Marquee

Bottom-aligned content with scrolling text Settings:
  • Height: Large
  • Includes spacer and marquee blocks
  • Space-between vertical alignment

3. Bottom Aligned Hero

Complex grouped content at bottom with baseline alignment Settings:
  • Uses nested group blocks
  • Baseline alignment enabled
  • Content direction: row

Performance Optimization

The Hero section implements smart image loading:
First hero section gets fetchpriority="high" for LCP optimization.
Desktop widths: 832, 1200, 1600, 1920, 2560, 3840Mobile widths: 416, 600, 800, 1200, 1600

Accessibility

  • Provide descriptive alt text for all images
  • Ensure text has sufficient contrast against background media
  • Use overlay when text readability is compromised
  • Test keyboard navigation for clickable sections

Slideshow

Multi-slide banner rotation

Layered Slideshow

Advanced multi-layer animations

Media with Content

Image/video with text pairing