Other Liquid Tags
Use li-tag
to wrap a string within a Liquid tag {% ... %}
, ideal for assigning, incrementing, decrementing or capturing a variable.
li-tag = assign product_title = product.title | upcase
{% assign product_title = product.title | upcase %}
Important:
The div element that the li-tag
is attached to gets replaced by the Liquid tag, so it cannott have any child elements. This is especially useful if you want to create more complex Liquid logic or want to use other Liquid tags from Shopify’s documentation.
Last updated
Was this helpful?