Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I am trying to display a metafield value as the default content on the product page.
This is the syntax, I am using:
The metafield definition is as follows:
But when I enable it on the theme, it does not show the value. What could I be missing here ???
No, it does not work like this.
In default theme content (previously Theme Language) {{variable}} is not a way to render Liquid variable, but a placeholder for a variable which will be supplied by a theme code.
Say you have a translation called "Quantity of color" under General and it's set as "{{ number }} of this color available"
When your liquid code in theme looks like {{ "general.quantity_of_colors" | t: number: 25 }} the system will output "25 of this color available"
Documentation is here https://shopify.dev/docs/storefronts/themes/architecture/locales/storefront-locale-files#pass-multip...
Oh thanks for the explain. So could you help me with the code/syntax that I can define in the theme code so that I can display a metafield value on the product page for a default content/language?
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