Hello,
I am making a Shopify website and I need help with some custom liquid code. I have some code that works to display all collections a product is in. I would like to modify it to not display certain collections such as one called "all" or "Home Page". I write applications in VB.net but, I am new to making website, HTML, CSS or Shopify's "Liquid." Can anyone help with this? Thank you,
Here is the code:
<div>
<p>
{% for collection in product.collections %}
{% assign coll = '/collections/' | append: collection.title | replace: " ", "-" %}
{{ collection.title | capitalize | link_to: coll }}{% unless forloop.last %},{% endunless %}
{% endfor %}
</p>
</div>
I am making a Shopify website and I need help with some custom liquid code. I have some code that works to display all collections a product is in. I would like to modify it to not display certain collections such as one called "all" or "Home Page". I write applications in VB.net but, I am new to making website, HTML, CSS or Shopify's "Liquid." Can anyone help with this? Thank you,
Here is the code:
<div>
<p>
{% for collection in product.collections %}
{% assign coll = '/collections/' | append: collection.title | replace: " ", "-" %}
{{ collection.title | capitalize | link_to: coll }}{% unless forloop.last %},{% endunless %}
{% endfor %}
</p>
</div>