shopify有些主题产品页面自带显示tag链接,有些不带。 如果想自己添加,方法如下
- <div class="product-tags">
- <p><strong>Product Attributes:</strong>
- {% for tag in product.tags %}
- <a href="/collections/all/{{ tag | handleize }}">{{ tag }}{% unless forloop.last %},{% endunless %}</a>
- {% endfor %}
- </p>
- </div>
复制代码
路径: Sections / product-template.liquid 注意是自己使用的模版的产品页面
https://community.shopify.com/c/ ... link-to/td-p/470672
|