Adding standard metafield definitions

Standard definitions are automatically configured for you, and are designed to be universally compatible across Shopify. Because standard metafield definitions follow standards that are used across all Shopify stores, they're supported by apps, themes, and other parts of your store. Some examples of standard definitions include product rating, time and date, and related products.

Category metafields are added when a pre-defined, standard category is assigned to a product. For example, if you add the product category Apparel & Accessories > Clothing > Clothing Tops > Shirts, then you can add category metafields for size, neckline, sleeve length type, top length type, age group, fabric, target gender, clothing features, and color. You can edit your product attribute entries in Content > Metaobjects or from the product page.

Whenever possible, use a standard definition for your metafields. For more information, refer to Shopify standard metafields.

Add a standard definition

  1. From your Shopify admin, go to Settings > Custom data.
  2. Select the part of your store that you want to add a metafield to. For example, Products.
  3. Click Add definition.
  4. In the Name field, search for the standard definition that you want to use. For example, product rating or care guide. For more information, refer to Shopify standard metafields.
  5. Review the details of the standard definition.
  6. Optional: If the standard definition doesn't match your metafield, then click Change, and then select a different definition.
  7. Optional: To prevent custom storefronts from displaying values for this metafield, deselect Storefronts.
  8. Optional: To allow for this definition to display for automated collections, select Automated collections. This option is only available for product and variant metafields.
  9. Optional: To unpin the metafield so that the corresponding pages in your Shopify admin doesn't automatically display the metafield, click Definition pinned.
  10. Click Save.

Next steps after adding metafield definitions

After you add definitions for your metafields, you can complete the following actions:

Using standard metafields with the Storefront API

If you want to allow custom storefronts to display your metafields, then you can give access to the Storefront API when you create or edit a metafield definition. If you sell your Shopify products through a non-Shopify website, video game, or other custom shopping experience, then you might want to give access to the Storefront API.

By default, values for standard metafields are accessible to custom storefronts. Learn more about using metafields with the Storefront API.

Can't find answers you're looking for? We're here to help you.