I am using Dawn Theme and want to add subtitles on the product cards. In the admin panel, I activated to show the vendor name under the product title (see screenshot below). Basically I now want to replace that vendor name with a subtitle of my own. I know that I could just edit the vendor name in my products, but I guess that would be suboptimal, since in the code (and for search engines etc), that subtitle would still show as vendor name. Also I want to use the actual vendor name on the product page. So I already created a metafield where I can insert the subtitle for each product. Where do I have to change code in the theme so that the current vendor name is replaced with my custom (metafield) subtitle on the product cards?
Hey @uber
You can update it on snippets/card-product.liquid file
at Line 158 and 374. there are
{{ card_product.vendor }}
You have to update it with something like this
{{ card_product.metafields.xxxx.xxxx }}
Thanks a lot for your fast answer, it worked like a charm.
In line 374, the original code is “products.product.vendor”.
Do I replace it with “products.product.metafields.custom.xxx” or “product.metafields.custom.xxx”?
Both seem to work - I just don’t want to mess anything up.
@uber Looks like for 374 line code, it’s a language translate text. so I think you can skip it.
