remove

Remove every occurrence of a specified substring from the input string.

Syntax

{{ string | remove: substring }}

Example

{% assign title = "Austin City Center" %}{{ title | remove: "City " }}

Output

Austin Center

The remove filter searches the input string for every instance of a designated substring and deletes them completely, returning the condensed text.

On programmatic landing pages, remove cleans repetitive corporate jargon or redundant state names from headline keywords. For example: {{ row.full_keyword | remove: ' Professional Services' }}. This tightens mobile headings, ensuring critical localized search terms remain visible above the fold on smartphone viewports.

Try this syntax in the editor.