> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/avante-themes/sections/collections/collection-with-sticky-image.md).

# 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

{% stepper %}
{% step %}

#### Add the section

In the theme editor click **Add section**, then pick **Collection with sticky image**.
{% endstep %}

{% step %}

#### Pick the collection

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

{% step %}

#### Choose the visual

Upload a **Video** or a **Custom image**. With neither of them filled, the section falls back to the collection image.
{% endstep %}

{% step %}

#### 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.
{% endstep %}
{% endstepper %}

### 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](https://staylime.com/docs/avante-themes/sections/collections/featured-collection-with-media.md) and [Featured collection with product grid](https://staylime.com/docs/avante-themes/sections/collections/featured-collection-with-product-grid.md). **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.

{% hint style="info" %}
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.
{% endhint %}

**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.

***

### Related

* [Featured collection with media](https://staylime.com/docs/avante-themes/sections/collections/featured-collection-with-media.md)
* [Featured collection with product grid](https://staylime.com/docs/avante-themes/sections/collections/featured-collection-with-product-grid.md)
* [Collections](https://staylime.com/docs/avante-themes/sections/collections.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/avante-themes/sections/collections/collection-with-sticky-image.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
