Making Vendor A Clickable Link on Product Page for Minimal Theme

Hello! I’m using the Minimal theme and would like to make the vendor (which I input as my product brand) a clickable link, such that it redirects to the product brand page if clicked on.

Any help would be greatly appreciated!

2 Likes

@melzee

thanks for post

You’ll need to find the location of the code for that text. It will probably be in Templates/product.liquid. You might find:

{{ product.vendor }}

Change it to:

{{ product.vendor | link_to_vendor }}

I hope this helps.

1 Like

That worked perfect - thank you so much!

1 Like

@melzee

it’s my pleasure to help us

1 Like

Hi @KetanKumar ! I’m working with the Dawn theme (OS 2.0) and the code shows like this:

{{ product.vendor | json }}

I tried your suggestion to change it to {{product.vendor | link_to_vendor}} and it didn’t work. How can I workaround this?

I got the same problem in dawn theme too!

i have the same problem with dawn template. Can i please ask your help ? Thanks

1 Like

@Eleias

yes, please try this code

{{ card.product.vendor | link_to_vendor }}
1 Like

This didn’t Work for me :disappointed_face:

I changed the coding as per your instructions but it’s showing the below (and not making Brand names clickable)

“brand”: {
@type”: “Thing”,
“name”: {{ product.vendor | link_to_vendor }}

Would you mind letting me know what I am doing wrong. Thank you

Hi, i just tried this edit but got the following error: “The metafield filter in the dynamic source ‘product.vendor | link_to_vendor’ is not supported.”

Do i understand corretly that i have to add a product metafield definition? If so, how and what would you suggest? Thanks!