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 CenterThe 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.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
