For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sticky layout

Use the Sticky layout block to keep one area visible while another area scrolls alongside it. This layout is useful for split content, such as keeping an image, heading, or other supporting content in view while visitors scroll through banners or other content.

1. How Sticky layout works

Sticky layout has a fixed structure with two areas:

  • Sticky: The area that stays in view as visitors scroll.

  • Main content: The area that scrolls alongside the Sticky area.

These two areas are built into the block and can't be removed or reordered.

The Sticky area holds a Group block (or other supported theme blocks, including Collection recommendation and Compact product bundle), which you can use to build the content that stays in view.

The Main content area accepts content blocks such as Banners, Collection recommendation, and Compact product bundle, which create the scrolling content alongside the Sticky area.

2. How to access Sticky layout

1

Add Sticky layout

In Theme Editor (Customize), open the template and select a section that supports layout blocks (such as Custom section, Section, Storytelling, Gallery, Page, Contact, or Collection links).

Click Add block.

2

Select Sticky layout

Search for sticky or select Sticky layout.

3

Configure the layout

After adding the block, select it to open its settings. Configure the block-level settings, then adjust the Sticky and Main content areas to build your layout.

4

Preview the result

Preview the block on desktop and mobile to make sure the Sticky position and content layout work as intended.

5

Save your changes

Click Save.

3. What you can customize

Sticky layout provides settings at three levels:

Sticky layout          [block]
├── Sticky             [the panel that stays in view]
└── Main content       [the area that scrolls]
  • Sticky layout: Controls the overall block width, the position of the Sticky area, and the layout, style, and spacing of the two areas.

  • Sticky: Controls the size, position, inner content layout, style, and spacing of the area that stays in view.

  • Main content: Controls the height, inner content layout, style, and spacing of the area that scrolls alongside the Sticky area.

4. Sticky layout

The outer container block. Its settings control the block width, the sticky side's position, and the layout, style, and spacing of the two areas inside it.

Size
Setting
Options
What it does

Width

  • Fill

  • Custom

Controls how wide the block appears.

  • Fill: Stretches the block to fill the available width.

  • Custom: Sets a custom width (percent or pixel).

Width is always full width on mobile.

Sticky position

Sets which side the Sticky area appears on.

Setting
Options
What it does

Desktop

  • Left

  • Right

Places the Sticky area on the left or right of the Main content on desktop.

Mobile

  • Top

  • Bottom

Places the Sticky area above or below the Main content on mobile.

Inner content layout

Arrange the two areas placed inside the block.

Setting
Options
What it does

Gap

  • Default

  • 0–32px

  • Custom

Sets the spacing between the Sticky and Main content areas.

Custom on mobile

  • On

  • Off

Reveals a separate Gap value for mobile screens.

Style

Control the block's color scheme, background, and visual treatment.

Setting
Options
What it does

Inherit color scheme

  • On

  • Off

Turning this On matches the block's colors to the section. Turning it Off lets you select a different color scheme.

Custom background

  • On

  • Off

Enables a custom background treatment for the block. When Background is set to Media and Show different media on mobile is On, mobile shows only the mobile media, or a placeholder when empty; never the desktop media.

Spacing
Setting
Options
What it does

Padding

  • On

  • Off

Adds space inside the block between its edge and the inner content.

Margin

  • On

  • Off

Adds space outside the block.

4.1. Sticky

The area that stays in view while the Main content scrolls beside it.

Sticky holds a Group block. You can't add other blocks directly to Sticky, so build your sticky content inside the Group.

Size
Setting
Options
What it does

Width

  • Fit

  • Fill

  • Custom

Controls how wide the Sticky area appears.

  • Fit: Sizes the Sticky area to fit its content.

  • Fill: Stretches the Sticky area to fill the available width.

  • Custom: Sets a custom width for the Sticky area.

Height

  • Fit

  • Full

Controls the height of the Sticky area.

  • Fit: The Sticky area takes up only as much height as its content needs.

  • Full: The Sticky area stretches to fill all available height.

On mobile, Width is always Fill and Height is always Fit, even when Height is set to Full on desktop.

Position
Setting
Options
What it does

Sticky anchor

  • Top

  • Middle

  • Bottom

Sets where the Sticky area rests as the Main content scrolls past it.

Position and Sticky anchor only appear when Height is set to Fit.

Inner content layout

Arrange the blocks placed inside the Sticky area.

Setting
Options
What it does

Direction

  • Vertical

  • Horizontal

Sets whether blocks stack or sit side by side.

Alignment

  • Left

  • Center

  • Right

Positions content across the available space.

Position

  • Top

  • Middle

  • Bottom

  • Space between

Positions content along the opposite axis of the main direction.

Gap

  • Default

  • 0–32px

  • Custom

Sets the spacing between blocks.

Custom on mobile

  • On

  • Off

Reveals separate layout controls for mobile screens.

Style
Setting
Options
What it does

Inherit color scheme

  • On

  • Off

Turning this On matches the Sticky area's colors to the section. Turning it Off lets you select a different color scheme.

Custom background

  • On

  • Off

Enables a custom background treatment for the Sticky area. When Background is set to Media and Show different media on mobile is On, mobile shows only the mobile media, or a placeholder when empty; never the desktop media.

Corner radius

  • Main corner

  • Small

  • Extra small

  • None

  • Custom

Controls how rounded the Sticky area's corners appear.

  • Main corner matches the global corner radius set in your theme.

  • Small and Extra small inherit from the main corner value and scale it down proportionally for a subtler effect.

  • None removes rounding entirely for a sharp, full-bleed look.

  • Custom lets you set a precise value to match a specific design.

For detailed settings, see Corner radius.

Show border

  • On

  • Off

Adds a border around the Sticky area.

Spacing
Setting
Options
What it does

Padding

  • On

  • Off

Adds space inside the Sticky area between its edge and the inner content.

Margin

  • On

  • Off

Adds space outside the Sticky area.

4.2. Main content

The area that scrolls beside the Sticky area. Add blocks here, such as Banners, to build the scrolling content.

Size
Setting
Options
What it does

Height

  • Fit

  • Full

Controls the height of the Main content area.

  • Fit: The Main content area takes up only as much height as its content needs.

  • Full: The Main content area stretches to fill all available height.

Width is always Fill. On mobile, Width is always Fill and Height is always Fit, even when Height is set to Full on desktop.

Inner content layout

Arrange the blocks placed inside the Main content area.

Setting
Options
What it does

Direction

  • Vertical

  • Horizontal

Sets whether blocks stack or sit side by side.

Alignment

  • Left

  • Center

  • Right

Positions content across the available space.

Position

  • Top

  • Middle

  • Bottom

  • Space between

Positions content along the opposite axis of the main direction.

Gap

  • Default

  • 0–32px

  • Custom

Sets the spacing between blocks.

Custom on mobile

  • On

  • Off

Reveals separate layout controls for mobile screens.

Style
Setting
Options
What it does

Inherit color scheme

  • On

  • Off

Turning this On matches the Main content area's colors to the section. Turning it Off lets you select a different color scheme.

Custom background

  • On

  • Off

Enables a custom background treatment for the Main content area. When Background is set to Media and Show different media on mobile is On, mobile shows only the mobile media, or a placeholder when empty; never the desktop media.

Corner radius

  • Main corner

  • Small

  • Extra small

  • None

  • Custom

Controls how rounded the Main content area's corners appear.

  • Main corner matches the global corner radius set in your theme.

  • Small and Extra small inherit from the main corner value and scale it down proportionally for a subtler effect.

  • None removes rounding entirely for a sharp, full-bleed look.

  • Custom lets you set a precise value to match a specific design.

For detailed settings, see Corner radius.

Show border

  • On

  • Off

Adds a border around the Main content area.

Spacing
Setting
Options
What it does

Padding

  • On

  • Off

Adds space inside the Main content area between its edge and the inner content.

Margin

  • On

  • Off

Adds space outside the Main content area.

  • Group - build and organize the content inside the Sticky area

  • Banner - add scrolling content to the Main content area

  • Image - configure image settings such as corner radius

Last updated