Skip to content

Instantly share code, notes, and snippets.

@walkirien
Created March 31, 2021 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walkirien/be4e5ce8dd0a5e56241467955bdff4f8 to your computer and use it in GitHub Desktop.
Save walkirien/be4e5ce8dd0a5e56241467955bdff4f8 to your computer and use it in GitHub Desktop.
Subcategories in Category Page in Jumpseller
<div class="row">
{% for category in category.subcategories %}
<div class="col-md-3 col-6 mb-3">
<a href="{{category.url}}">
{% if category.images.first != blank %}
<img src="{{category.images.first | thumb: '255x255'}}" alt="{{category.name}}" class="img-fluid mb-2" />
{% else %}
<img src="{{'demo-test.jpg' | asset }}" alt="{{category.name}}" class="img-fluid mb-2" />
{%endif%}
<br>
{{category.name}}
</a>
</div>
{% endfor%}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment