Skip to main content

Overview

The Hero Section allows you to create engaging, conversion-focused banners with:
  • Multiple content blocks for flexible layouts
  • Advanced animations and transitions
  • Responsive design that looks great on all devices
  • Background image/video support
  • Call-to-action buttons with customizable styles
  • Statistics display to build trust
  • Overlay controls for text readability

Content Blocks

The Hero Section uses a block-based system for maximum flexibility:

Eyebrow Block

Add a small text element above your main heading to provide context or categorization.
Settings:
  • Text: The eyebrow text to display
  • Color: Text color (inherits from theme or custom)
  • Font Size: Small, Medium, Large

Heading Block

Your main headline - the most important text element.
Settings:
  • Text: Your main headline
  • Color: Text color
  • Font Size: Extra Small, Small, Medium, Large, Extra Large
  • Font Weight: Light, Normal, Medium, Bold, Extra Bold

Subheading Block

Secondary headline to provide additional context.
Settings:
  • Text: Subheading text
  • Color: Text color
  • Font Size: Small, Medium, Large
  • Font Weight: Light, Normal, Medium, Bold

Description Block

Longer text content to provide details or benefits.
Settings:
  • Text: Description content (supports HTML)
  • Color: Text color
  • Font Size: Small, Medium, Large
  • Line Height: Tight, Normal, Relaxed

Buttons Block

Call-to-action buttons to drive conversions.
Settings:
  • Button 1 Text: Primary call-to-action text
  • Button 1 URL: Link destination
  • Button 1 Style: Primary, Secondary, Outline, Ghost
  • Button 2 Text: Secondary call-to-action text
  • Button 2 URL: Link destination
  • Button 2 Style: Primary, Secondary, Outline, Ghost
  • Button Size: Small, Medium, Large

Statistics Block

Display key statistics to build trust and credibility.
Settings:
  • Stat 1 Number: First statistic number
  • Stat 1 Label: Description for first statistic
  • Stat 2 Number: Second statistic number
  • Stat 2 Label: Description for second statistic
  • Stat 3 Number: Third statistic number
  • Stat 3 Label: Description for third statistic

Section Settings

Layout Settings

  • Full Width: Enable to make the section span the full viewport width
  • Hero Height: Set the minimum height of the hero section (300px - 800px)
  • Content Alignment: Left, Center, Right
  • Content Position: Top, Center, Bottom

Background Settings

  • Background Image: Upload or select a background image
  • Background Video: Upload a video file (MP4 format)
  • Background Color: Fallback color when no image/video is set
  • Overlay Color: Color overlay for better text readability
  • Overlay Opacity: Control overlay transparency (0% - 100%)

Spacing Settings

  • Padding Top: Space above the section (0px - 100px)
  • Padding Bottom: Space below the section (0px - 100px)
  • Content Spacing: Space between content blocks (Tight, Normal, Relaxed)

Animation Settings

  • Animation Type: None, Fade In, Slide Up, Slide Down, Zoom In
  • Animation Duration: Fast (0.3s), Normal (0.6s), Slow (1s)
  • Animation Delay: Delay before animation starts (0s - 2s)

CSS Classes

The Hero Section uses these CSS classes for styling:

Responsive Design

The Hero Section is fully responsive with these breakpoints:

Best Practices

Content Strategy

  1. Clear Value Proposition: Your heading should clearly communicate what you offer
  2. Benefit-Focused: Focus on benefits, not just features
  3. Action-Oriented: Use strong call-to-action buttons
  4. Trust Signals: Include statistics or testimonials when relevant

Visual Design

  1. High-Quality Images: Use professional, high-resolution background images
  2. Text Readability: Ensure sufficient contrast between text and background
  3. Visual Hierarchy: Use different font sizes to create clear hierarchy
  4. White Space: Don’t overcrowd the hero section

Performance

  1. Optimize Images: Compress background images for faster loading
  2. Lazy Loading: Background images are automatically lazy-loaded
  3. Critical CSS: Hero styles are inlined for faster rendering
  4. Mobile Optimization: Test on various mobile devices

Examples

E-commerce Hero

Service-Based Hero

Troubleshooting

Common Issues

  1. Text Not Visible: Check overlay opacity and text color contrast
  2. Images Not Loading: Verify image file size and format
  3. Layout Breaking: Check content length and responsive settings
  4. Buttons Not Working: Verify URL settings and link validity

Performance Issues

  1. Slow Loading: Optimize background images (compress, use WebP)
  2. Layout Shift: Set proper image dimensions
  3. Animation Lag: Reduce animation complexity on mobile devices