Skip to content

capture

Captures rendered content into a variable.

{% capture name %}…{% endcapture %}
Name Type Description
name (required) string Variable that receives the text.
Liquid
{% capture label %}{{ product.title }} · {{ product.vendor }}{% endcapture %}{{ label | upcase }}
Output
EMBROIDERED LINEN ABAYA · LAYLA

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?