Ürün Detay Sayfası
Ürün Etiketleri
Ürün etiketleri için kullanılan kod yapısı
Kod Yapısı
HTML
index.html{% if product.tags | length > 0 %} <div class="product-tags"> <div class="product-tags-title">{{ getLang("_LabelFilter_") }} :</div> <div class="product-tags-content"> {% for tag in product.tags %} <a href="{{ tag.url }}" title="{{ tag.name }}" target="_blank">{{ tag.name }}</a> {% endfor %} </div> </div> {% endif %}
SCSS
style.css/* Tags */ .product-tags { display: flex; .product-tags-title { flex: 0 0 auto; color: $color-text; font-weight: 700; padding: 3px 0; margin-right: var(--spacer-4); } .product-tags-content { display: flex; flex-wrap: wrap; a { display: block; color: $color-text; padding: 3px var(--spacer-4); margin-right: 4px; margin-bottom: 4px; border: 1px solid $color-border; background: #ffffff; border-radius: $border-radius; } } @include max($md) { display: block; } }
Son güncelleme: