Created
September 6, 2011 16:37
-
-
Save jconnoll/1198090 to your computer and use it in GitHub Desktop.
Shopify Snippet - Linklist with Images (ala Category Display)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %}Get page handle{% endcomment %} | |
{% assign listname = page.handle %} | |
{% capture listname %}{{ page.title | handle }}{% endcapture %} | |
{% for link in linklists[listname].links %} | |
{% if link.object.products.first.id %} {% comment %}Make sure it's not empty{% endcomment %} | |
<a href="{{ link.url }}" title="{{ link.title }}"> | |
{{ link.object.products.first.featured_image | product_img_url: 'medium' | img_tag: link.title }} | |
</a> | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment