App blocks for themes

If your section is part of a JSON template, then you should support blocks of type @app. These blocks enable app developers to create blocks for merchants to add app content to their theme without having to directly edit theme code. You can build app blocks using theme app extensions.

In the theme editor, merchants can choose to add app blocks to existing sections, or in a new section.

When merchants choose to add the app to a new section, Shopify automatically wraps the app block in a wrapper section called Apps. You can customize this wrapper section by your own apps.liquid section.

To add support for app blocks to your sections and theme blocks, you need take the following steps:

Refer to Dawn's main product section for an example implementation of an existing theme section that opts-in to accepting app blocks.