What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Shopify Liquid help.

MikeLK19

New member
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>
 
Back
Top