Skip to main content

Collection Banner

Merchant Developer

Displays a full-width collection banner with a background image, dark overlay, breadcrumbs, title, and optional description at the top of collection pages.

The Collection Banner section renders a hero-style banner at the top of a collection page. It shows the collection's title over a background image with a dark overlay, plus optional breadcrumbs and the collection description. When disabled, it still emits a visually hidden <h1> for SEO and accessibility.

storefront previewResult
Collection Banner
Collection Banner
storefront previewSettings
Collection Banner section settings - image, height, overlay, alignment, breadcrumbs and description
Collection Banner section settings - image, height, overlay, alignment, breadcrumbs and description

How to use it​

For merchants

In the Shopify theme editor, add or open this section, then:

  1. In the theme editor, open a Collection page and select the Collection banner section.
  2. Keep Show banner checked to display the banner (uncheck to hide it while preserving a hidden page heading).
  3. The banner uses the collection's image from Shopify Admin automatically; set a Custom banner image for pages with no Admin image (e.g. /collections/all), or a Fallback background color when no image exists.
  4. Choose a Banner height, adjust Overlay opacity, and pick a Text alignment.
  5. Toggle Show breadcrumbs and Show collection description as desired, then Save.
tip

Recommended custom image ratio is 3:1, full-bleed under the overlay, so keep key detail away from the far edges.

tip

Image priority is: the collection's Admin image first, then the custom banner image, then the fallback background color.

tip

Banner text is always white over the overlay, so raise Overlay opacity if a light image makes the title hard to read.

Settings reference​

SettingTypeDefaultWhat it does
Color schemecolor_schemescheme-1Color scheme applied to the section.
Show bannercheckboxtrueWhen off, the banner is hidden but a visually hidden collection heading is still output for SEO and accessibility.
Custom banner imageimage_picker-Used when the collection has no image set in Shopify Admin. Recommended ratio: 3:1, full-bleed overlay - keep key detail off the far edges.
Fallback background colorcolor#333333Used when no image is available.
Banner heightselectmediumSmall (300px), Medium (450px), Large (600px), or Auto. Heights shrink on mobile (200/300/400px).
Overlay opacityrange40Darkness of the overlay over the image, 0-80% in 5% steps.
Text alignmentselectcenterAligns banner text Left, Center, or Right.
Show breadcrumbscheckboxtrueShows a Home / Collection breadcrumb trail above the title.
Show collection descriptioncheckboxfalseDisplays the collection's description under the title when the collection has one.

The section only accepts @app blocks, letting Shopify apps inject content into the banner.

Developer notes​

Developer note

Scoped styles and IDs use #CollectionBanner-{{ section.id }}; all CSS/JS is inline in the section with no external asset dependencies.

  • Background image is rendered with image_tag at width 1920 using loading: 'eager', fetchpriority: 'high', and a responsive widths set for LCP performance.
  • Inline scripts toggle header classes: enabled adds header-transparent and has-banner on .site-header-wrapper; disabled adds no-banner for a solid header.
  • Overlay opacity is computed as overlay_opacity | divided_by: 100.0 into an rgba(0,0,0,...) background (FB13: hidden <h1> retained when disabled).
{%- liquid
assign banner_image = nil
if collection.image
assign banner_image = collection.image
elsif section.settings.custom_banner_image != blank
assign banner_image = section.settings.custom_banner_image
endif
-%}