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
Type of media for slot 1Options:
image- Static imagevideo- Video file
Image for media slot 1Visible when:
media_type_1 == 'image'Video for media slot 1 (autoplay, loop, muted)Visible when:
media_type_1 == 'video'Type of media for slot 2Options:
image- Static imagevideo- Video file
Image for media slot 2
Video for media slot 2
Mobile Media
Enable custom media for mobile devices
Stack media vertically on mobile instead of side-by-side
Media type for mobile slot 1Visible when:
custom_mobile_media is enabledMobile image for slot 1
Mobile video for slot 1
Section Link
Make the entire section clickable
Open link in new tab
Layout
Content arrangement directionOptions:
column- Vertical stackingrow- Horizontal alignment
Force vertical layout on mobileVisible when:
content_direction == 'row'Horizontal alignment for row layoutOptions:
flex-start- Leftcenter- Centerflex-end- Rightspace-between- Space between
Vertical position for row layoutOptions:
flex-start- Topcenter- Centerflex-end- Bottom
Vertical position for column layoutOptions:
flex-start- Topcenter- Centerflex-end- Bottomspace-between- Space between
Spacing between blocksRange: 0-100px, step 1
Content area widthOptions:
page-width- Constrained to page widthfull-width- Full viewport width
Section minimum heightOptions:
auto- Fit contentsmall- Small heightmedium- Medium heightlarge- Large heightfull-screen- 100vhcustom- Custom percentage
Custom height percentageRange: 0-100%, step 1
Visible when:
Visible when:
section_height == 'custom'Appearance
Color scheme for text and content
Enable media overlay
Overlay color with alpha supportVisible when:
toggle_overlay is enabledOverlay appearanceOptions:
solid- Solid color overlaygradient- Gradient overlay
Gradient directionOptions:
to top- Bottom to topto bottom- Top to bottom
Add blurred reflection effect below section (images only)
Reflection opacity percentageRange: 0-100%, step 1
Padding
Top padding in pixelsRange: 0-100px, step 1
Bottom padding in pixelsRange: 0-100px, step 1
Supported Blocks
The Hero section accepts these block types:@theme- All theme blockstext- Text contentbutton- CTA buttonslogo- Logo imagesjumbo-text- Large textspacer- Spacing controlgroup- 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
Image Loading Strategy
Image Loading Strategy
The Hero section implements smart image loading:First hero section gets
fetchpriority="high" for LCP optimization.Responsive Images
Responsive Images
Desktop widths:
832, 1200, 1600, 1920, 2560, 3840Mobile widths: 416, 600, 800, 1200, 1600Accessibility
- 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
Related Sections
Slideshow
Multi-slide banner rotation
Layered Slideshow
Advanced multi-layer animations
Media with Content
Image/video with text pairing