Ingredient Spotlight
A heading on the left, an optional link on the right, then a row of ingredient cards. Clicking any card slides in a panel with that ingredient’s full write-up.
Built for product pages, where each product can list its own ingredients — but it works anywhere a row of ingredients makes sense.
Layout
Section titled “Layout”On phones the cards stack, one per row, full width. From md up they settle
into a static three-across grid. Three ingredients fill that row exactly, which
is what the design is built around.
The header stacks on small screens, putting the link on its own line beneath the heading.
Where ingredients come from
Section titled “Where ingredients come from”The Where ingredients come from setting picks one of two modes:
| Mode | What it does |
|---|---|
| Metafield list on this page | Reads a list-of-metaobjects metafield from whatever page is being viewed. The default. |
| Hand-picked ingredients | You choose each ingredient and the order, using the Ingredients picker. |
Metafield list is the one to use on a product template: each product carries its own ingredient list, and a single section placed once shows the right ingredients on every product.
How the metafield mode resolves
Section titled “How the metafield mode resolves”It looks for the metafield you name in this order, using the first one it finds:
- The product being viewed
- The page being viewed
- The collection being viewed
- The store itself
That means one section placed on the product template can show a different list per product, while a store-level metafield acts as the site-wide default.
The metafield must be a Custom metafield of type List of metaobjects
pointing at the ingredient metaobject. The default name the section looks for
is ingredients.
Settings
Section titled “Settings”| Setting | What it does |
|---|---|
| Section ID | Optional anchor id, for linking directly to this section. |
| Heading | The large heading on the left. Leave empty to hide it. |
| Where ingredients come from | Metafield list or hand-picked. See above. |
| Metafield name | The metafield to read. Only shown when the metafield mode is selected. Defaults to ingredients. |
| Ingredients | The hand-picked list. Also used as the fallback when a metafield list is empty. |
| Ingredients to show | Caps how many cards render. Defaults to 3. |
| Scroll cards sideways on mobile | Off by default, which stacks the cards. On makes phones show one swipeable row. |
| Link text | The link beside the heading. Leave empty to hide the link. |
| Link URL | Where the link points. |
| Color scheme | Background and text colors. Dark schemes invert nested components automatically. |
| Padding (mobile / desktop) | Space above and below the section at each size. |
Cards and the detail panel
Section titled “Cards and the detail panel”Each card is a photo with the ingredient’s name in a frosted bar across the bottom. The whole card is one button — clicking it opens a panel that slides in from the right carrying that ingredient’s write-up, any extra detail sections, and links to the products the ingredient appears in.
All of that copy is already in the page when it loads, so opening a panel is instant and search engines can read it.
The panel can also be linked to directly: adding #ingredient- plus the
ingredient’s handle to a URL opens that panel on arrival. Closing it returns
focus to the card that opened it, and Esc closes it from anywhere.
These are the same cards and the same panel the Ingredients Grid section uses, so the two stay consistent — this section just uses the shorter card.
- Three ingredients fill the desktop row exactly. A fourth wraps onto a second row on its own.
- Leave Link text empty to hide the link when the section sits directly above something it would duplicate.
- Ingredients without a photo get a tinted placeholder block rather than a collapsed card, so a missing image never breaks the row.