truncatewords
Shortens a string to a number of words.
Syntax
Section titled “Syntax”string | truncatewords: words, ellipsisReturns
Section titled “Returns”string
Example
Section titled “Example”{{ 'Soft linen for warm evenings in Doha' | truncatewords: 3 }}Soft linen for...Related
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

