Script&Theory

§12 / SECTIONS

REF: TG–DOC–12 · REV. 1.7

Hero

The Image or video banner section (sections/hero.liquid) is a full-width banner. The background is an image, a Shopify-hosted video or a YouTube/Vimeo link. Content is built from theme blocks placed over the media. Up to three product hotspots can be placed on the banner.

TANGENT 1.7 / SHOPIFY OS 2.0 / UPDATED 2026-10-19

tangent / home
FIG. 01 — IMAGE OR VIDEO BANNERDEMO STORE · PROTOTYPE

Presets

The section can be added from four presets in the Banners category:

PresetDifferences from the section defaultsBlocks
Image or video banner—Text (label), Heading, Text, Group with two Buttons
Hero: Beauty showcaseContent position Center, overlay 30%Text (label), Heading, Group with one Button
Hero: Luxury minimalContent position Bottom center, Solid overlay, 25%Heading, Button
Hero: Sport commerceHeight Large, Content position Top left, Solid overlay, 30%Text (label), Heading, Group with two Buttons

Setup

  1. Add Image or video banner to a template.
  2. Choose Background: Image or Video.
  3. For an image, upload Image (3000 x 1600 px recommended) and optionally Mobile image (1100 x 1500 px recommended). The mobile image is used on screens up to 749 px wide.
  4. For a video, upload an MP4 to Video, or paste a YouTube or Vimeo link in Or YouTube / Vimeo link. Add a Video description for screen reader users.
  5. Edit the content blocks.

Settings

SettingIDTypeDefaultOptions / notes
Backgroundmedia_typeSelectImage
  • Image
  • Video
ImageimageImage—Also the cover for YouTube and Vimeo videos. 3000 x 1600 px recommended.
Mobile imageimage_mobileImage—Image background only. Optional. 1100 x 1500 px recommended.
VideovideoVideo—Video background only. MP4 uploaded to Shopify.
Or YouTube / Vimeo linkvideo_urlVideo URL—Video background only. Loads and plays when a shopper presses play. Used only when no Video is uploaded.
Video descriptionvideo_altText—Video background only. Read by screen readers.
Autoplay muted and loopautoplayCheckboxOnVideo background only. A pause button is always shown. Autoplay stops for shoppers who prefer reduced motion.

Layout

SettingIDTypeDefaultOptions
HeightheightSelectFull screen
  • Full screen
  • Large
  • Medium
  • Small
Content positionpositionSelectBottom left
  • Bottom left
  • Bottom center
  • Center
  • Top left
Content widthcontent_widthRange 400–1600 px, step 20900 px

Heights (from assets/base.css):

HeightMinimum height
Full screenViewport height minus the announcement bar minus 50 px, between 650 px and 1060 px (630–880 px on mobile)
Largemin(86svh, 880px)
Mediummin(64svh, 640px)
Smallmin(44svh, 440px)

Overlay

SettingIDTypeDefaultOptions
Overlay opacityoverlayRange 0–90%, step 540%
Overlay styleoverlay_styleSelectGradient
  • Gradient
  • Solid
Color schemecolor_schemeColor schemescheme-3

Shoppable hotspots

Pick up to three products and place their dots on the image. Check positions on a phone, especially with a separate mobile image.

SettingIDTypeDefault
Productshotspot_productsProduct list—
Hotspot 1 horizontal / vertical positionhotspot_1_x / hotspot_1_yRange 0–100%40% / 50%
Hotspot 2 horizontal / vertical positionhotspot_2_x / hotspot_2_yRange 0–100%55% / 40%
Hotspot 3 horizontal / vertical positionhotspot_3_x / hotspot_3_yRange 0–100%70% / 55%

Each hotspot is a dot that opens a small product card. Only one card in the banner is open at a time.

Blocks

The section accepts theme blocks (@theme) and app blocks (@app). Theme blocks in Tangent: Text, Heading, Button, Group, Image, Spacer, Custom Liquid.

Image cropping

The banner image fills the section with object-fit: cover. The theme positions it at 64% horizontally and centered vertically (63% on mobile). Use Mobile image when the desktop crop does not work on phones. The theme does not read the image's focal point setting directly.

Structure

example.txt
1Image or video banner (sections/hero.liquid)
2├── Media: <picture> / image, <video-media> (Shopify video) or <deferred-media> (YouTube/Vimeo)
3│ └── Overlay (gradient or solid)
4├── Hotspots (snippets/hotspot.liquid), up to 3
5├── Content: theme blocks, max width = Content width
6└── Bottom bar: "01 — 03" index and a scroll-down button
text
For developers

Last updated for Tangent 1.7

Get support ↗