Creating entries
Metaobject entries store your customized data for your Shopify resources. The customized data is determined by the fields in your metaobject definition. After you create a metaobject definition, you can then add information in each entry for the fields from the definition.
For example, you can add in a metaobject definition named "Product highlights" with a heading, caption, image, and description. This definition creates the structure for each metaobject entry. You can make multiple "Product highlights" entries to display with specific products.
Category metafields come with default metaobject entries based on the standard product category. 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
. All of these metafields have default metaobject entries that you can either use as is or customize further. You can use the color entry called black
or customize the name to graphite
to fit your brand better.
On this page
Create metaobject entries
- From your Shopify admin, go to Content > Metaobjects.
- Click into the metaobject definition that you want to add entries to.
- Click Add entry.
- Complete the fields for your entry. These fields are determined by the metaobject definition. The field that is marked as the Name or Label can be used to search for the entry.
- If you are creating an entry for a standard metaobject, then you need to select a Base value to map your new entry to. These values are predetermined by Shopify to improve search and organization.
- Optional: Set the status for your metaobject. New entries are set to Active by default. Active means it's ready to be displayed in your store, but it won't be displayed to customers until you publish it. If an entry is set to Draft, then you can't publish it to your store.
- Optional: If the metaobject is not publishing entries as web pages, then you can edit the auto-generated identifier by clicking the pencil icon next to Handle.
- Optional: If you are building a web page with the entry, then choose a theme template. You can click the eye icon to preview the template with your metaobject entry.
- Click Save.
After you create your entry, to use it dynamically in a part of your store, create a metafield reference for your custom entries. You can then connect entries on individual products or display them in your storefront using dynamic sources in your theme.
Entry handle
Your entry has a generated handle, which is a readable, URL-safe unique identifier specific to a single entry. You can edit the entry handle after you have started using entries in your store, but doing so isn't recommended. If you edit the entry handle and it's being used in other parts of your store, then this impacts any references manually set in your store, including in Liquid. Editing the entry handle can result in Liquid errors or not having an entry connected to your product, collection, and other areas of your Shopify admin.
Edit an entry
You can edit entries at any time by clicking on a metaobject definition from the Content > Metaobjects dashboard.
If the entry is published anywhere on your store, then your edits will automatically be reflected wherever the entry is used.
If you want to make changes to the fields that the entry uses, then you need to edit the metaobject definition and not the individual entry.
Steps:
- In your Shopify admin, go to Content > Metaobjects.
- Click a metaobject definition that has an entry you want to edit.
- Click an entry to load the details.
- Make any required changes to the entry.
- Use the drop-down menu to set the status to Draft or Active.
- Click Save.
Add or edit entries for category metafields from the product page
Category metafields use metaobjects and have default entries that include a metafield references. You can edit them or add your own entries and associate them with a product category in Shopify's Standard Product Taxonomy.
You can edit or add new entries to your category metafields. You can edit entries from the product page in your Shopify Admin or from Content > Metaobjects. When you add new entries, they become available to add to any product connected to the category metafield. When you edit existing entries, they update everywhere that entry is connected.
Edit or add category metafields from the product page
You can add or edit category metafields from the product page for a specific product.
Steps:
Desktop
- From your Shopify admin, go to Products.
- Click the product with category metafields that you want to edit or add.
- To edit or add category metafields on a specific product, do either of the following:
- For category metafields connected to variant options: Click the variant option, and then click the option value field.
- For category metafields that aren't connected to variant options: In the Category metafields section, click the category metafield.
- Click the entry that you want to edit, and then click Edit.
- Edit the fields as needed.
- Click Save.
iPhone
- From the Shopify app, go to Products > All products.
- Tap the product with category metafields that you want to edit or add.
- To edit category metafields on a specific product, do either of the following:
- For category metafields connected to variant options: In the Options section, tap Edit, and then tap the variant options that you want to edit or add values to. Tap Add value, and then View all. Select additional values. Tap Save.
- For category metafields that aren't connected to variant options: In the Metafields section, tap View all, and then tap the category metafield. Select additional values. Tap Save.
- To add category metafields to a specific product, do either of the following:
- For category metafields connected to variant options: In the Options section, tap Edit, and then tap the variant options that you want to edit or add values to. Tap Add value, and then View all. Tap +. Fill in the fields for the new entry for your category metafield. Tap Save.
- For category metafields that aren't connected to variant options: In the Metafields section, tap View all, and then tap the category metafield. Tap +. Fill in the fields for the new entry for your category metafield. Tap Save.
Android
- From the Shopify app, go to Products > All products.
- Tap the product with category metafields that you want to edit or add.
- To edit category metafields on a specific product, do either of the following:
- For category metafields connected to variant options: In the Options section, tap Edit, and then tap the variant options that you want to edit or add values to. Tap Add value, and then View all. Select additional values. Tap Save.
- For category metafields that aren't connected to variant options: In the Metafields section, tap View all, and then tap the category metafield. Select additional values. Tap Save.
- To add category metafields to a specific product, do either of the following:
- For category metafields connected to variant options: In the Options section, tap Edit, and then tap the variant options that you want to edit or add values to. Tap Add value, and then View all. Tap +. Fill in the fields for the new entry for your category metafield. Tap ✓.
- For category metafields that aren't connected to variant options: In the Metafields section, tap View all, and then tap the category metafield. Tap +. Fill in the fields for the new entry for your category metafield. Tap ✓.
Edit or add entries for category metafields from the Content page
You can edit entries for your category metafields from the Content page in your Shopify admin on both desktop and in the Shopify app.
Steps:
Desktop
- From your Shopify admin, go to Content > Metaobjects.
- Click the definition name for the category metafield that you want to edit or add entries to.
- Click the entry.
- Edit the fields as needed.
- Click Save.
iPhone
- From the Shopify app, go to … > Content.
- Tap Metaobjects.
- Tap the entry that you want to edit.
- Edit the fields as needed.
- Tap Save.
Android
- From the Shopify app, go to ☰ > Content.
- Tap Metaobjects.
- Tap the entry that you want to edit.
- Edit the fields as needed.
- Tap ✓.
Add entries to category metafields from the Content page
You can add new entries related to category metafields from the Content page in your Shopify admin on desktop. After you add a new entry, you can use that in any product with the category metafield.
Steps:
- From your Shopify admin, go to Content > Metaobjects.
- Click the definition name for the category metafield that you want to edit or add to.
- Click Add entry.
- Fill out the fields for your new entry.
- Click Save.
Delete an entry
Deleting an entry can't be undone.
Steps:
- In your Shopify admin, go to Content > Metaobjects.
- Click a metaobject definition that has an entry you want to delete.
- Click an entry that you want to delete.
- Click Delete. Confirmation text displays to confirm that you want delete the entry.
- Click Delete to remove the entry.