Re: Metafields don't show on Dawn theme

How can I display Metafields on Dawn theme collection pages?

TheFabFriend21
Shopify Partner
12 0 2

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

 

Subtitle Issue.pngSubtitle Issue 2.png

Replies 8 (8)

chitraltour
Visitor
1 0 0
  1. Go to your Themes code in your Shopify Admin. You can locate your themes code going in your Shopify Admin -> Online Store -> Themes -> Actions -> Edit Code.
  2. Locate product. liquid. ...
  3. Add code to display your Metafield. ...
  4. Save and go check any product in your website

 

TheFabFriend21
Shopify Partner
12 0 2

I did that and it's not showing...

 

any other suggestions

MetafieldsGuru
Shopify Partner
160 32 102

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

Check out Metafields Guru, the #1 ranked metafields app.

Bulk editor | Data import/export | Metafield sets | Browser extension
TheFabFriend21
Shopify Partner
12 0 2

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.

MetafieldsGuru
Shopify Partner
160 32 102

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.

Check out Metafields Guru, the #1 ranked metafields app.

Bulk editor | Data import/export | Metafield sets | Browser extension
TheFabFriend21
Shopify Partner
12 0 2

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

julianabr
Shopify Partner
8 0 1

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.

_________________________________________________________________________________________
I'm an internet dinosaur who knows -just- enough to be dangerous.

gr_trading
Shopify Partner
1891 145 199

Hi @TheFabFriend21 ,

 

You need to add your custom metafield in card-product.liquid, example image given below

 

hari1_prasad_0-1665595754069.png

 

Result

hari1_prasad_1-1665595840494.png

 

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee