How To Link Vendor On Product Page To Collection?

As it stands, the Vendor name on any individual product page links to an automatically generated Vendor page, which I have no control over on my dashboard.

I would rather these link to the collection page for that vendor, which I do, in fact, have control over in my dashboard.

As it stands, it creates a messy and disjointed experience for my users, and is a huge source of frustration as controlling the layout of each individual collection is highly important to my store.

The snippet of code controlling these links is in my product.liquid section, and looks as follows:

 {% if section.settings.product_vendor_enabled %}
{%- capture vendor -%} {{ product.vendor | link_to_vendor }} {%- endcapture -%}
<p class="product-vendor">{{ 'product.vendor_html' | t: vendor: vendor }}</p>
{% endif %}

I would imagine I’d need to replace the “link_to_vendor” or " ‘product.vendor_hteml’ " with an a href link to /collections/vendor, but the vendor name would need to be handleized for url friendliness.

Anyone out there smart enough with liquid coding who could save my freakin’ life here?

Xx

Hello there,
please check this article.
Click here