Shopify themes, liquid, logos, and UX
Hey guys, i was looking into adding metafields or preferably tags to the front page and every collection page on my shopify store, i already have it on my product page i just want it to show under the title of each product as i've shown here with the red boxes. I am currently using the Debuitfy theme for shopfify.
Hello @AdamA32 ,
You can add the metafields code to the collection grid file. If you are using Dawn theme you can find the file in Snippets named "card-product.liquid".
Add the code in the file after the product title:
If you are using a different theme then the file name might be different.
Are you able to provide me with the code? The metafields are labelled as "subtitle"
Hi @AdamA32
Share me the screenshot of metafields you have created, So that i can send you the code because i have to check the namespace and key of the metafields
Hi @AdamA32
You can use the below code to show subtitle on the product page,
{% if product.metafields.custom.subtitle %}
{{ product.metafields.custom.subtitle.value }}
{% endif %}
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025