Created
March 31, 2021 15:54
-
-
Save walkirien/be4e5ce8dd0a5e56241467955bdff4f8 to your computer and use it in GitHub Desktop.
Subcategories in Category Page in Jumpseller
This file contains 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
<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