Skip to main content
A banner type defines the fields you fill in when you attach a banner to a rule. Every store starts with a built-in Link type (image + click-through URL). Create a custom type for richer promos: a countdown with an end date, a product spotlight, or a card with translated promotional copy. Your storefront receives the saved field values alongside the banner’s images and uses the banner type to choose how to display them.

Before you start

  • Sketch the fields you want on the banner before opening the dashboard. Give each one a name and a type. Changing a field’s type later drops its saved value from every banner that uses it.
  • The storefront needs to render the new type before merchandisers can rely on it. Coordinate the theme change first. See Rendering banners in Liquid or Rendering banners with the SDK.
  • For translated copy, you need permission to manage metaobject definitions and entries in Shopify, plus Shopify Translate & Adapt or another translation app that supports metaobjects. Set up the languages and markets you want to serve in Shopify.

Steps

  1. Go to Settings → Banner Types.
  2. Click Create Banner Type. You land on the builder.
  3. Name the type in the editable title at the top of the page. The name is the human-readable label shown to merchandisers when they select a type on a banner (e.g. “Countdown Promo”). Layers derives the slug from the name and shows it under the title as Type:. The slug is locked at save time and is what your storefront switches on, so pick a name whose slug you’re happy to commit to.
  4. Add fields under Fields. Click Add field for each one, then set:
    • Field name — the label you see next to the input. Layers keeps the field’s original identifier when you rename it, so your theme can still recognize it.
    • Required — click the asterisk button next to the name to make the field required. Merchandisers can’t save the banner without a value for a required field.
    • One value or List of values — choose List of values to accept multiple values of this type (e.g. a list of product references). Supported for most types; a few (JSON, rich text, multi-line text, boolean, money, ID, language) can’t be lists.
    • Type — select text, number, date, URL, color, money, rating, a product, collection, variant, file, or Metaobject reference, and more. See the full type list. For Metaobject, choose the Shopify definition you want this field to use; it must allow Storefront API access. See the setup below.
    • Options — expand the field to set validations, which depend on the selected type. Text can use a Pattern or a list of Allowed values; numbers and dates can have a Minimum and Maximum; decimals can have Maximum decimal places; lists can have a minimum and maximum number of items; file references can restrict Accepted files to images, videos, or both. Ratings require a minimum and maximum.
  5. Reorder fields by dragging the handle on each row. The order controls how fields appear in the banner editor when merchandisers add a banner of this type. To delete a field, expand it and click Remove field.
  6. Under Placements, turn on Inject, Overtake, or both. A banner using this type can only be saved in a placement you allow here. Restricting this is useful when a type only makes sense in one placement (e.g. a hero-only promo you don’t want anyone dropping into an inline cell).
  7. Click Create Banner Type. Layers saves the type, locks the slug, and takes you to the edit view.

Use metaobjects for translated copy

Text you type directly into banner text fields is not translated. Put any copy you want to translate in a Shopify metaobject instead, then select that entry in your banner.

Create and translate content in Shopify

  1. In Shopify admin, go to Settings → Custom data → Metaobjects and click Add definition.
  2. Name the definition, such as “Promotional copy”, and add the fields you need, such as a headline and supporting text. Choose a text field as the entry’s display name if you want that name to follow its translation too.
  3. Enable Storefront access so the Storefront API can read the definition. Enable Translations if Shopify offers that option for the definition, then click Save.
  4. Go to Content → Metaobjects, open your definition, and add an entry. Fill in the original text and save it. If the definition supports publishing, set the entry to Active, not Draft.
  5. Open Shopify Translate & Adapt, or another translation app that supports metaobjects. Select the entry and add translations for your store’s languages. Add market-specific translations where you need different wording, then save your changes.

Select the definition and entry in Layers

  1. Go to Settings → Banner Types and create or open a banner type.
  2. Add a field and choose Metaobject as its Type. Choose One value for a single entry or List of values for several entries.
  3. Select your Shopify metaobject definition. Each field is locked to one definition, and all entries in a list must come from that definition. Definitions without Storefront API access appear disabled.
  4. Save the banner type. When you add or edit a banner, select this type and choose an entry in the new field. Use the read-only summary below the picker to check its content. For a list, add and select each entry you need.
  5. Save the banner and confirm that your theme displays its metaobject content.
Layers uses the shopper’s market-specific translation first, then the language-wide translation, then the original text for any field without a translation. Draft or deleted entries do not appear on the storefront: Layers leaves out the single field or removes the entry from a list.

Edit a banner type

Open the type from Settings → Banner Types, change what you need, and click Save Changes. Two edits are destructive because they invalidate stored banner values:
  • Removing a field — the value stored on every banner of this type is dropped.
  • Retyping a field (for example, from single-line text to URL, or switching between One value and List of values) — the value stored on every banner of this type is dropped.
Layers saves these edits right away. After the save, a Some stored values will be dropped from payloads warning lists the affected fields and the specific banners (and their rules) that lost data. To keep the data, add the new field first, roll each affected banner over to it, then remove or retype the old field in a follow-up save. Renaming the type or reordering fields is always safe. The slug never changes.

Delete a banner type

On Settings → Banner Types, open the row’s actions menu, select Delete, and confirm with Delete Banner Type. Deleting can’t be undone. Layers rejects the delete if any rule still has a banner of this type so you can retype or remove those banners first. The built-in Link type cannot be deleted.

What the storefront sees

You can use the type for a slot’s default or conditional banners. Each shopper sees at most one banner per slot: the first matching conditional in priority order, or the eligible default. Your theme receives the selected banner’s type and saved fields, along with the slot’s position and size. Unpublished references and fields removed from the type are omitted. Share the rendering guide with your developer for implementation details.

Troubleshooting

Your definition is missing from the picker or you cannot select it. Enable Storefront access for the definition in Shopify. Wait for Layers to sync the change, then reopen the picker. Definitions without Storefront API access cannot be selected. Your translations are lagging behind your edits. Confirm that you saved the translations in Shopify Translate & Adapt or your translation app. Translation updates can take a few minutes to appear. Your banner still shows the original text. Check that you selected a translated metaobject entry, rather than typing copy into a banner text field. Also check that you saved a translation for the shopper’s language or market.

Next steps