Skip to content

Instantly share code, notes, and snippets.

@boldfacedesign
Created March 23, 2014 18:29
Show Gist options
  • Save boldfacedesign/9727362 to your computer and use it in GitHub Desktop.
Save boldfacedesign/9727362 to your computer and use it in GitHub Desktop.
shopify collection loop
{% if c.handle contains collection.handle and c.handle != collection.handle %}
<li class="{{ forloop.index }}">
<a href="{{ c.url }}" title="{{ c.title }}">
<span class="product-border"></span>
<div class="img-wrap">
<span class="img-wrap__inner">
<img src="{{ c.image.src | collection_img_url: 'medium' }}">
</span>
</div>
<div class="product-price">
<p class="product-price__name">{{ c.title }}</p>
</div>
</a>
</li>
{% capture temp %}{{ counter | plus: 1 }}{% endcapture %}
{% assign counter = temp %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment