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?
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.
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.).