Shopify themes, liquid, logos, and UX
I'm using Dawn theme and Metafields Guru. I'm not sure where to add the code
{{ resource.metafields.namespace.key.value }}
to get the metafields to display on the collection pages under the title. Anytime a product is shown on my site, I need the subtitle to appear under the main title.
Can someone help me figure this out please?
TIA
I did that and it's not showing...
any other suggestions
Hi @TheFabFriend21 ,
You may want to check out this step-by-step tutorial. It shows how to display a metafield on the product page in two different ways: using the visual theme customization tool or by editing the source code directly (as suggested by chitraltour).
I already have the metafield showing on the product page, as shown in the picture above.
I want the metafield to be shown as part of the product card, so anytime the product displays, the metafield data shows as well.
Got it. The thing is that different parts of your Shopify store are controlled by different templates/theme files. Which means that adding the Liquid code to the product page template won't make the data visible on a collection (?) page. Since there's already a product grid on the collection (?) page, all you need to do is to find that part in your theme's source code and place the Liquid code there. You can see an example of such code here or here.
I have tried every place that makes sense. The closest that I came was to have it at the very bottom, under quick add, but that's not where I want it. Dawn theme only displays certain information on the product card.
I was hoping that someone from Shopify would chime in because this is their theme, and it would be super helpful for them to tell me how to edit it
I'm new, but i had a really great chat with shopify support that helped me edit info on the product page in dawn. They spent over a half hour with me trying to track it down and now i have their email address for any further help. I would definitely try the chat.
Hi @TheFabFriend21 ,
You need to add your custom metafield in card-product.liquid, example image given below
Result
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024