Shopify themes, liquid, logos, and UX
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
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
hi @MaBa
What type of metafied you created?
I created 2 product metafields:
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
I created a single-line-type metafied and use Block text to show it. The metafield works fine on Dawn
what about the home page?
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
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.).
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025