What a Shopify metafield actually is
Shopify describes metafields as custom fields that let you add additional information to a Shopify resource. Think of a product as a row of standard fields: title, description, price, images. A metafield is a field you add yourself, such as fabric, care instructions or a returns note.
Each one is identified by three things: the owner resource, a namespace and a key. The owner is what it is attached to. The namespace is a grouping that stops names clashing. The key is the field's name. A value is stored along with type information, so a number behaves differently from a line of text.
Shopify supports metafields on products, product variants, collections, customers and orders, among others, according to its REST Admin API metafield documentation. That list also includes pages, blogs, articles and the shop itself.
The type matters more than most owners expect. Shopify's list of data types splits them into basic types (text, numbers, dates, measurements with a unit) and reference types, which point at another Shopify resource such as a product, a collection or a metaobject entry. Choosing the right type at the start is far easier than changing it later.
Where you see metafields in your Shopify admin
There are two layers, and mixing them up causes most of the confusion: the definition and the value.
The definition is the structure. Per Shopify's help page on editing custom metafield definitions, you find it under Settings then Metafields and metaobjects, choose the part of the store (for example Products) and click the metafield. Shopify's help pages label this area slightly differently in places, with Custom data also used, so look for whichever name your admin shows. You can edit the name, the description and the validation rules. Standard definitions are configured automatically and cannot be edited.
The value is the content for one item. Shopify's guide to adding values to metafields says you enter these on the matching page in the admin. For a product, open it and scroll to the Metafields section. Only pinned definitions appear there automatically. If a field seems to be missing, click View all.
So if a colleague says the care note is wrong on one product, that is a value edit on the product page. If the field itself needs renaming or tighter rules, that is a definition edit in settings. The two carry very different risk.
Metaobjects: when one field is not enough
A metafield adds one value to something that already exists. A metaobject is a different animal. Shopify's About metaobjects page calls it an instance of structured data with multiple related field values, a standalone entry that can be referenced from many places.
The pieces mirror metafields. According to the Metaobjects help page, the definition (the group of fields that sets the structure) is managed in settings, and the entries (the actual content) are managed under Content then Metaobjects.
Shopify's developer documentation offers a helpful way to picture it in its guide to data modelling with metafields and metaobjects. A metaobject definition is like a custom table, a metafield definition is like an extra column on a built-in table such as Product, and an entry is a row. A product then points at an entry through a reference type field.
What stores commonly use them for
Three uses come up again and again.
Extra product detail. Ingredients, materials, care instructions, a warranty note or a delivery message that only applies to some products. A text or rich text metafield on the product is usually enough.
Size charts. This is where metaobjects earn their place. Shopify lists product size charts with multiple measurements as a use case, and its worked example defines a size chart with fields for size, chest, waist and length. One entry per size row, or one per chart, can then be referenced from every product that uses it. Change the chart once and every product pointing at it updates. If you edit an entry that is published anywhere, Shopify's help page on creating entries says the change is reflected wherever the entry is used.
Badges. A badge such as "New in" or "Made to order" is typically driven by a simple true or false field, or a short text field, which the theme turns into a label. To be clear, this one is common practice rather than a Shopify documented example. The Liquid documentation does list boolean among the metafield types, which is what makes the pattern possible.
In each case the metafield holds the data and does nothing visible on its own. The theme has to read it.
How your theme reads metafields and metaobjects
There are two routes, and a store can use both.
Through Liquid
Themes address a metafield by namespace and key. Shopify's Liquid metafields documentation gives product.metafields.custom.instructions as the example: the instructions metafield in the custom namespace. For typed values such as references, the metafield object page points you to the .value property, and it warns that a key named size, first or last needs square bracket notation. Metaobject fields are reached by the definition type and the entry handle, as shown in the metaobject Liquid page.
The practical point for an owner: your theme code may hard-code a namespace and key. Delete the metafield, or replace it with one under a different namespace or key, and the code is still asking for the original.
Through dynamic sources in the theme editor
Shopify's page on dynamic data sources explains that merchants can connect section and block settings to metafield and metaobject data in the theme editor, with no code. Compatibility depends on the setting type. An image picker setting, for instance, connects to a file_reference metafield, and a product setting connects to a product_reference.
That is useful, and it is also the hidden dependency. A block in your live theme may be quietly wired to a metafield you set up months ago.
What to leave alone, and what is safe
Safe, routine work: editing a value on a product, adding a new definition, changing a definition's name or description, or pinning and unpinning a definition so it shows (or hides) on admin pages.
Things to treat with care:
- Deleting a metafield definition. Shopify's help page on deleting metafields gives two options. Delete field only keeps the saved values, which you can later reach by migrating them to a new custom definition with the same namespace and key. Delete field and its saved values removes both. Shopify's caution is blunt: deleting metafields is permanent and cannot be undone.
- Deleting anything connected to your live theme. The same page says to make sure the metafield is not connected to a block or section in your live theme first. Otherwise customers can see display errors, and you must resolve those before making other changes to the theme templates involved.
- Deleting a metaobject definition. This is broader. Shopify's Building a metaobject page says deleting a metaobject cannot be undone and deletes all its entries. Its developer documentation for
metaobjectDefinitionDeleteadds that related metafield definitions, metaobjects and metafields are deleted asynchronously. One click can take out a whole size chart library. - Deleting a single entry. Shopify says it is removed from anywhere it is published or used in your store.
- Editing the wrong layer. If you want to change which fields an entry has, edit the definition, not the individual entry.
Apps add another wrinkle. Shopify's documentation on managing metaobject definitions says that when an app is uninstalled, its app-owned definitions are deleted and the values are retained only temporarily, without a definition. Do not rely on that as a safety net. If an app created data your theme reads, export or record what you need before you remove it.
The separate problem is code left behind. Uninstalling an app does not always remove its snippets, app blocks or script tags, so a removed app can leave theme code still asking for data that has gone. Our slow store checklist covers how to find those leftovers.
A safe routine before you change or delete anything
- Write down the namespace and key of the metafield, or the type of the metaobject, exactly as shown in settings.
- Check what uses it. Look in the theme editor for blocks connected through dynamic sources, and ask whoever maintains the theme whether any Liquid mentions that namespace and key. Search the theme code for the key if you have access.
- Duplicate the theme and make the change there first. Check a product page, a collection page and the cart on a phone and on desktop.
- Prefer "Delete field only" if you are unsure, because it keeps the values you may need later.
- Record the old values for anything you cannot afford to retype, such as a long run of size chart entries.
- Publish and recheck. Look for blank gaps or broken sections where content used to be.
One more thing to watch afterwards: data that appears late can push the page around. Shopify names app-injected content among the common causes of layout shift, so if a badge or size chart arrives after the rest of the page, see our guide to layout shifts (CLS).
When to bring in a specialist
Metafield edits on a few products are an owner's job. It is worth getting a developer to look when a deletion has already broken a template, when the same data sits in several definitions with similar names, when you want size charts or badges to work across hundreds of products, or when you are unsure what an old app left behind. Shopify development work can build the definitions and theme blocks properly, and fixes and support covers a section that has gone blank after a deletion. If you are still choosing who to ask, our guide to hiring a Shopify developer in the UK explains how to size the job. Technical SEO is a related concern, since product detail that disappears from the page can matter to search, and our Shopify SEO checklist shows what to check first.
If you would rather describe the problem than diagnose it, use the contact page. A description of what you can see is enough, and scope and cost are agreed before any work starts.
Sources
- Shopify, MetafieldReference - GraphQL Admin (read November 2026)
- Shopify, Metafield (read October 2026)
- Shopify, List of data types (read November 2026)
- Shopify, Shopify Help Center | Editing custom metafield definitions (read September 2026)
- Shopify, Shopify Help Center | Adding values to metafields (read November 2026)
- Shopify, About metaobjects (read November 2026)
- Shopify, Metaobjects (read November 2026)
- Shopify, Data modeling with metafields and metaobjects (read November 2026)
- Shopify, Creating entries (read November 2026)
- Shopify, Liquid objects: metafields (read October 2026)
- Shopify, Liquid objects: metafield (read October 2026)
- Shopify, Liquid objects: metaobject (read October 2026)
- Shopify, Dynamic data sources (read October 2026)
- Shopify, Deleting metafields (read September 2026)
- Shopify, Shopify Help Center | Building a metaobject (read November 2026)
- Shopify, metaobjectDefinitionDelete - GraphQL Admin (read October 2026)
- Shopify, Manage metaobject definitions (read November 2026)
- Shopify, Performance best practices for Shopify themes (read November 2026)





