Skip to main content

Shopify Theme Editor

Using the Shopify theme editor (theme customization) you can add labels as a section or block to a product template or connect them to an existing section or block via a metafield (dynamic source).

Add Label as a Block

  1. Go to Themes in the Shopify Admin
  2. Find the theme you want to update and click Edit theme

  3. In the theme editor, select the product template you'd like to add labels to:

    Select product template
  4. Select the desired location within the product template. This can be done by hovering your cursor over the desired insertion area:

    Add block button
  5. Click on the add block button and select Nutrition Facts from the Apps section:

    Add Nutrition Facts app block button
  6. This will add a Nutrition Facts block to the selected template:

    Configure Nutrition Facts app block
  7. Click on the Nutrition Facts block to access additional configuration options

  8. Click Save

Product labels will now be shown on your site.

Add Label via a Metafield

This only works if the target section or block supports dynamic sources.

  1. Go to Themes in the Shopify Admin
  2. Find the theme you want to update and click Edit theme

  3. In the theme editor, find the section or block you want to add labels to and click on it. In this example we add them to a Text block:

    Section or block selection
  4. From within the Text block's configuration click the Connect dynamic source button:

    Dynamic source button
  5. Make sure the product template's sources are selected:

    Dynamic source section

    If it's not selected click on the currently selected heading and change the source to the product template

    Dynamic source categories
  6. From the list of dynamic sources search for and choose Nutrition Facts app label embed code:

    Nutrition facts label dynamic source
  7. Once selected you will see it as a source in the associated field:

    Nutrition facts label selected
  8. Click Save

Product labels will now be shown on your site.

Elsewhere

If you want to add labels to a location outside of the product template or, anywhere else on your site, try one of the following: