Hier ist mein Code: < /p>
Code: Select all
{{ collection.products_count }} products
{% if collection.all_tags.size > 0 %}
Filter by
[list]
{% for tag in collection.all_tags %}
{% unless tag contains "_"%}
{% if current_tags contains tag %}
[*]
{{ tag | link_to_remove_tag: tag }}
{% else %}
[*]
{{ tag | link_to_add_tag: tag }}
{% endif %}
{% endunless %}
{% endfor %}
[/list]
{% endif %}
Sort by
{% assign sort_by = collection.sort_by | default: collection.default_sort_by %}
{% for option in collection.sort_options %}
{{ option.name }}
{% endfor %}
< /code>
Hier ist das CSS: < /p>
.sort-count-filter {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
margin-top: 3%;
font-family: "Open Sans";
justify-content: center;
align-items: center;
border-top: 1px solid black;
border-left: 1px solid black;
}
.sort-count-filter > div {
border-bottom: 1px solid black;
border-right: 1px solid black;
}