Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am currently running the Icons theme. I wish there was an easier way to make the vendors clickable.
I searched for past results, but the page must have been archived or something.
Solved! Go to the solution
This is an accepted solution.
Hi @curiousjoe,
Please go to product-form.liquid file, find 'product.vendor' and change code here:
Code:
product.vendor
=>
product.vendor | link_to_vendor
Hope it helps!
Hi @curiousjoe,
Are you referring to vendors at the product page?
Please go to Actions > Edit code > Sections > main-product.liquid file, find 'product.vendor' and change code:
{{ product.vendor | link_to_vendor }}
Hope it helps!
Yes, I am referring to the vendors on the product page.
I am not seeing product.vendor in the main-product.liquid file
The following is all the code in the product.liquid file
{% section 'product-template' %}
{% section 'product-recommendations' %}
<!-- DRIP_PRODUCT_TRACKING_V1 -->
<script text="text/javascript">
var _dcq = _dcq || [];
_dcq.push(['recordProductView', {{ product|json }}, {{ product.collections|map:'id'|json }}, '{{shop.currency}}', '{{ product.url }}']);
</script>
<!-- END_DRIP_PRODUCT_TRACKING_V1 -->
And in the featured-product.liquid file I see
{
"type": "checkbox",
"id": "show_vendor",
"label": "Show vendor"
},
Hi @curiousjoe,
Please send me the code of product-template.liquid file, I will guide you to change it
@Litos The document is over 1500 words and over 800 lines of code. Should I attach it here as a text file?
Hi @curiousjoe,
You just need to find 'show_vendor' and then send me the code snippet here, I will guide you in detail
That is what I see
{
"type": "checkbox",
"id": "show_vendor",
"label": "Show vendor"
},
Hi @curiousjoe,
You need to find the code at product-template.liquid file, it will need to change the code here
That was from the product-template.liquid file.
It's the only place that has the word "vendor" in it.
Hi @curiousjoe,
Can you create the file and send me the full code? I'm referring to liquid code, not Json.
I will check it.
DM Sent with the code. Thank you for your help!
This is an accepted solution.
Hi @curiousjoe,
Please go to product-form.liquid file, find 'product.vendor' and change code here:
Code:
product.vendor
=>
product.vendor | link_to_vendor
Hope it helps!
Thank you so much! You're a life saver!
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025