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
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.
Select Sticky layout
Search for sticky or select Sticky layout.
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.
Preview the result
Preview the block on desktop and mobile to make sure the Sticky position and content layout work as intended.
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.
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.
4.2. Main content
The area that scrolls beside the Sticky area. Add blocks here, such as Banners, to build the scrolling content.
Related documentation
Last updated