Why is my created metafield not showing on home and PDP pages?

Topic summary

A user is unable to display certain metafields on their homepage and product detail page (PDP) despite using the Dawn theme. Specifically:

Issues identified:

  • Page metafields (single-line and multi-line text) don’t appear in the homepage’s available metafield list
  • Multi-line product metafield doesn’t show in the PDP list (though single-line product metafield works)

Proposed solutions:

  • One responder suggests the theme may not support these metafield types, though this seems unlikely given Dawn’s capabilities
  • Another successfully displays single-line product metafields using a text block in Dawn
  • For homepage implementation, a workaround involves adding a custom Liquid section with code like {{ shop.metaobjects.type.handle }} for metaobjects or {{ product.metafields.namespace.key }} for product metafields

Key clarification:

  • Page metafields only apply to pages created in Shopify’s Pages admin, not theme templates like the homepage
  • A suggestion emerges for Shopify to add global metafields accessible store-wide without per-object definition

The discussion remains open with no definitive resolution for native block-based homepage metafield display.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi,

I have 2 questions about metafields:

  • I created a metafield I wanted to display in the Home page but it never shows up in the list of available metafields (only the Brand ones are available). Am I doing something wrong?

  • I created a multi-line metafiled that I wanted to display in the PDP. Also in this case this specific metafield don’t show up in list of available metafields (for the record, I managed to add a single line metafield). Am I doing something wrong?

Thanks a lot

2 Likes

Hi @MaBa ,

I guess your theme does not support the type of metafields you have created. In this case, you should hire an expert to solve your issue

I’m using theme Dawn and I have already used the same metafields in other pages but I cannot use them in Home and PDP

1 Like

hi @MaBa

What type of metafied you created?

I created 2 product metafields:

  • single-line text. I managed to display it in the PDP
  • multi-line text. I didn’t manage to display it in the PDP

I created 2 page metafields (single-line and multi-line text) and I didn’t manage to display none of them in the Home page

@MaBa

I created a single-line-type metafied and use Block text to show it. The metafield works fine on Dawn

I don’t think there is a direct way to add metafields to the homepage ie. with blocks or sections. You can, however, add a custom liquid section. Here you could reference your metafield data. To access the metafield data, you’d input:

{{ shop.metaobjects['type']['handle'] }}
 or 
{{ shop.metaobjects.type.handle }}

into a custom liquid section, to access a metaobject. Replace type and handle with the metaobject’s type and handle.

To access a product metafield, you’d input:

{{ product.metafields.namespace.key }}

Replace namespace and key with the metafield’s namespace and key.

I need the same

what about the home page?

The “page” metafield object only refers to pages you create outside of the theme code using the Pages admin in Shopify. It would be helpful if Shopify could add a global section to settings/custom data so that we can define metafields that are available to the store, except checkout (of course), but don’t need to be defined per object (e.g., product, page, etc.).