All things Shopify and commerce
Hi! How do I get my meta fields to show up on my products page? I don't see a collapsible block to use either.
Thank you!
To display meta fields on your product page in the Prestige theme, you'll need to make some code customizations. Here's how you can do it:
From your Shopify admin, go to Online Store > Themes.
Find the Prestige theme and click on Actions > Edit code.
In the left sidebar, click on "product.liquid" to open the product template file.
Look for the section where you want to display the meta fields. This could be in the product description, under the product title, or in a separate section altogether.
To display a specific meta field, use the following code:
{{ product.metafields.namespace.key }}
Replace "namespace" with the namespace of your meta field and "key" with the key of your meta field.
Note that if you don't see a collapsible block to use, you may need to add one manually to your product template file. Here's an example of how to add a collapsible block:
{% if product.metafields.namespace.key %} <div class="collapsible-block"> <h3 class="collapsible-block__heading">Meta field title</h3> <div class="collapsible-block__content"> {{ product.metafields.namespace.key }} </div> </div> {% endif %}
This code will only display the meta field if it exists for the product. Replace "namespace" and "key" with the namespace and key of your meta field, and "Meta field title" with the title you want to display for the collapsible block.
I hope this helps! Let me know if you have any further questions.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025