Shopify Metafields Not Showing in Theme Builder? Here's the Fix!
Hey there, fellow store owners! Ever found yourself scratching your head, trying to display some super specific product info on your Shopify store, only to hit a wall with metafields not showing up in the theme builder? You're definitely not alone. It's a common hurdle, and it popped up recently in the Shopify Community forums with a thread titled "Metafields is not showing in the builder (IMPACT)."
Our friend GabrielNoba kicked off the discussion, wanting to add product dimensions right under the main title – like a neat little subtitle. They'd created a "Dimension" metafield, filled it with data, but couldn't seem to link it within the theme editor. Sound familiar?
The Metafield Mystery: Why It's Not Showing Up
GabrielNoba's situation is a classic example of a common misunderstanding around how Shopify metafields interact with your theme's sections and blocks. The core of the issue often lies in two key areas:
- Metafield Type & Resource: What kind of metafield did you create (e.g., Product, Variant, Collection)? And what specific content type did you assign it (e.g., Single line text, Dimension, Rich text)?
- Theme Builder Compatibility: Not all metafield types are directly compatible with every setting type in your theme editor's blocks.
In the community thread, a helpful expert, NKCreativeSoulutions, quickly jumped in to clarify. The first crucial step is to ensure your metafield is associated with the correct resource – in this case, a Product metafield. If you're trying to show product dimensions, it needs to be linked to the product itself, not a variant or order.
The second, and often trickier, part is the content type compatibility. While GabrielNoba specifically mentioned using a "Dimension" metafield type, NKCreativeSoulutions suggested ensuring it was a "text-like type compatible with text settings in the theme editor (Single line text)."
Now, this is where a bit of nuance comes in, thanks to some documentation insights shared by tim_tairli in the thread. Shopify's documentation confirms that "dimension" type metafields *are* compatible with "richtext" and "text" type settings. Shopify will automatically convert the dimension object (like { "width": 10, "height": 5, "depth": 2, "unit": "cm" }) into a displayable string (e.g., "10 x 5 x 2 cm"). So, if you created a "Dimension" type metafield, it should still work with a standard text block!
The real challenge might be simply finding it in the dynamic source picker, or perhaps a temporary glitch. Let's look at how to properly connect it.
Solution 1: Connecting Your Metafield in the Theme Editor
This is the ideal approach for most store owners, as it requires no code. Here's how NKCreativeSoulutions outlined the steps:
-
Ensure Correct Metafield Setup:
- Go to your Shopify Admin > Settings > Custom data > Products.
- Make sure your dimension metafield is set up as a Product metafield.
- While a "Dimension" type works, for simple display, a "Single line text" metafield where you manually enter "10x5x2 cm" can sometimes feel more direct for theme editor compatibility. However, if you're using the "Dimension" type for structured data, stick with it!
-
Navigate to Your Theme Editor:
- Go to Shopify Admin > Online Store > Themes.
- Click "Customize" on your current theme.
- Go to a Product page template where you want to display the dimension.
-
Add or Select a Text Block:
- Find the section where you want the dimension to appear (e.g., Product information).
- Add a new block (like "Text" or "Custom Liquid" if you prefer, but "Text" should work).
- Select the new text block you've added or an existing one you want to modify.
-
Connect with Dynamic Source:
- In the settings panel for that text block, look for the dynamic source icon (it often looks like a small database symbol or a stack of circles). It's usually next to the text field where you would normally type static text.

- If prompted, choose Product as the resource context.
- In the list of available fields, you should see your Dimension metafield listed under its namespace and key (e.g.,
custom.dimensionsorproduct.metafields.app.dimensionif you used an app namespace). - Select it and click "Save."
If you've followed these steps and still can't see your metafield, double-check that you've actually added data to that metafield for the specific product you're viewing in the editor. Sometimes it's the simplest things!
Solution 2: The Custom Liquid Approach (When You Need More Control)
If the theme editor isn't cooperating, or if you need more precise control over the formatting and styling of your dimension display, dropping in some custom Liquid code is your best bet. This is a powerful workaround that NKCreativeSoulutions also suggested.
-
Add a Custom Liquid Block:
- In your theme editor, navigate to the product page section where you want the dimension.
- Add a "Custom Liquid" block to that section.
-
Insert the Liquid Code:
- Paste the following code snippet into the Custom Liquid block:
{% if product.metafields.app.dimension %}{{ product.metafields.app.dimension | metafield_text }}
{% endif %}
-
Customize Namespace/Key:
- Important: In the code,
product.metafields.app.dimensionassumes your metafield's namespace isappand its key isdimension. If you used a different namespace or key, you'll need to update this part of the code to match your specific metafield's identifier (e.g.,product.metafields.custom.product_dimensions).
- Important: In the code,
-
Add Styling (Optional but Recommended):
- The
part in the code adds a CSS class. You can then use this class in your theme's CSS file (usuallybase.cssortheme.cssin the Assets folder) to style your dimension text (e.g., font size, color, margin).
- The
This method gives you complete control over how the dimension appears and where it sits on the page, making it incredibly flexible for unique layouts.
Wrapping Up: Metafields are Powerful!
Metafields are an incredibly powerful feature for adding unique, structured data to your Shopify store. While connecting them to your theme can sometimes feel like a puzzle, understanding the interplay between metafield types, resource types, and theme editor compatibility is key. Whether you stick to the dynamic source option in the builder or dive into a little Liquid code, you've got solid paths to making your product pages shine with all the details your customers need. Don't hesitate to lean on the community forums; as this thread shows, there's always a helpful hand ready to guide you!