Skip to content

remove_first

Removes the first occurrence of a string.

string | remove_first: string

string

Liquid
{{ 'a-b-c' | remove_first: '-' }}
Output
ab-c

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?