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.
On this page
Add a standard definition
- From your Shopify admin, go to Settings > Custom data.
- Select the part of your store that you want to add a metafield to. For example, Products.
- Click Add definition.
- 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.
- Review the details of the standard definition.
- Optional: If the standard definition doesn't match your metafield, then click Change, and then select a different definition.
- Optional: To prevent custom storefronts from displaying values for this metafield, deselect Storefronts.
- Optional: To allow for this definition to display for automated collections, select Automated collections. This option is only available for product and variant metafields.
- Optional: To unpin the metafield so that the corresponding pages in your Shopify admin doesn't automatically display the metafield, click Definition pinned.
- Click Save.
Next steps after adding metafield definitions
After you add definitions for your metafields, you can complete the following actions:
- Pin or unpin metafield definitions to determine the order in which your metafields are displayed.
- Add values to metafields for parts of your store.
- Connect your metafields to your theme to display them on your online store.
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.