Skip to content

replace

Replaces every occurrence of a string.

string | replace: find, replace_with
Name Type Description
find (required) string Text to look for.
replace_with (required) string Replacement.

string

Liquid
{{ 'Free delivery in Doha' | replace: 'Doha', 'Qatar' }}
Output
Free delivery in Qatar

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?