Liquid, JavaScript, themes, sales channels
Hi,
I want to display custom meta description on some tag pages. (e.g. https://caqaresources.com.au/collections/assessment-kit/Assessment-Kit-(Q) ) and I try to use a construction like:
{% if collection.handle == 'assessment-kit' and collection.tags contains 'Assessment-Kit-(Q)' %}
<meta name="description" content="Test meta description">
{% endif %}
This is not working Please someone can help me find the right solution? Thank you!
That looks like it should work if the collection has that tag/handle combo, but since the handle is checked why check the tag also? Maybe only check if collection exists and then the tag without the handle.
can you please, rewrite the code?
User | RANK |
---|---|
29 | |
20 | |
15 | |
12 | |
8 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By