What this helps you do
Connect a supported text, image, colour, link or resource setting to saved information. For example, one product template can show each product's own care instructions.
Before you start
Use a theme version that supports the setting you need. Allow Storefront API access for a metafield you want to display. For a metaobject, the entry must be Active and both its definition and the field you want must allow storefront access.
Steps
- Open your theme editor and preview the kind of page you want to change, such as a product page.
- Select the section or block, then find the setting you want to connect. Select the cylinder icon beside its label.
- Choose the source group that describes where the information should come from. The groups available depend on this setting and where the block sits.
- Browse or search for a compatible field. For a reusable record, open Metaobjects, choose its definition, entry and compatible field.
- Select the source. Check the connected setting and the actual preview.
- Preview another product or item to make sure the content changes as intended. Check mobile as well, then save your theme changes.
Choose Closest, Section or Template
These names answer “which product should this setting read?” They are not different kinds of metafields.
| Source | Which product it means |
|---|---|
| Template → Product | The product whose page is open. |
| Section → Product | The product selected for the containing section. |
| Closest → Product | The nearest product around this block, including the individual product in a repeated card. |
Suppose you open a ring page, add a section featuring a necklace, and that section contains a card for earrings. Template reads the ring, Section reads the necklace, and Closest inside the earrings card reads the earrings. When there is only one product context, these choices can point to the same product.
Store fields and Metaobjects provide store-wide information rather than changing with the page's product. These appear under From your store when relevant.
What happens next
The setting reads the selected source when the page is shown. Editing the underlying information can update the content wherever that connection is used; it is not a separate copy typed into every block.
Connecting a field does not add a rule to hide an entire row or section when its value is empty. That behaviour depends on how the theme was built.
The menu is filtered, not a complete list of everything in Custom data. A product selector needs a product, an image setting needs an image, and a text setting needs compatible text. A card can also have a different nearby product from the page itself, so two blocks may offer different source groups.
Saving the theme and publishing it are separate actions. Follow the linked save and publish guide when the change is ready for shoppers.
Common problems
- No cylinder icon: Select the actual content block and a supported setting. Layout controls such as alignment do not automatically accept dynamic content. The installed theme version also matters.
- A field or entry is missing: Check its type, storefront access, entry status and the item type available on this page. Private customer or order data is not a general storefront source.
- Every card shows the page product: Choose Closest → Product for a card's own product. Template → Product deliberately reads the page product.
- The connected content is blank: Check the value on the product currently being previewed. Creating a definition does not fill its answers. A cleared section product also leaves its product-dependent content empty.
- You want to type ordinary content again: Disconnect the source using the connection control, then enter the replacement content. Check the preview before saving; Undo and Redo can help review the change.