For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Collection with sticky image

Pin an image beside a scrolling product grid in Avante, and choose between collection order and a random starting point.

Collection with sticky image holds one visual in place while the products scroll past it. It stays with the shopper for the whole section, which makes it a good fit for a campaign where the mood matters as much as the grid.

How to add

1

Add the section

In the theme editor click Add section, then pick Collection with sticky image.

2

Pick the collection

The products come from the Collection you choose. Its own image is only the last fallback for the visual beside them.

3

Choose the visual

Upload a Video or a Custom image. With neither of them filled, the section falls back to the collection image.

4

Set the grid and the mobile behaviour

Products to show runs from 4 to 8 in steps of two, 6 by default. Swap image position moves the visual to the other side on desktop, and Hide collection image on mobile drops it on narrow screens.

Good to know

The visual follows a priority order. Video wins over Custom image, and the collection's own image is used only when both are empty — the same chain as Featured collection with media and Featured collection with product grid. Enable pause control and Enable mute control appear only once a video is uploaded.

Products to show is a short range, not a free number. 4 to 8, in steps of two, 6 by default. The grid is meant to be a taste of the collection, not the collection.

Hide collection image on mobile exists for a reason. A sticky image has nothing to stick to on a narrow screen — it just takes up the first screenful before the products start. Hiding it on mobile is usually the right call.

Random takes a slice, it does not shuffle. Products order set to Random picks a random starting point and takes Products to show items from there, in order. The starting point is recalculated every time the page renders, so the grid changes between visits.

The section reads the collection without pagination, so it only ever sees the first 50 products of the collection's current sort order. A random starting point lands inside that fifty, not across the whole catalogue. On a long collection, sort it in the Shopify admin so the fifty you want are the ones at the top.

Short collections ignore Random. If the collection holds no more products than Products to show, the starting point is forced to the top and the result matches Collection order.

Customization ideas

  • One section per campaign, with the campaign video or photo pinned beside the collection it belongs to.

  • Collection order with a manual sort when the first products have to be exact; Random on an evergreen collection to keep the page moving on its own.

  • Alternate Swap image position between two consecutive sections so the page zigzags instead of lining up.


Was this helpful?