prepend

Prepend a specified string to the beginning of the input string, prefixing it.

Syntax

{{ string | prepend: prefix }}

Example

{% assign phone = "555-0199" %}{{ phone | prepend: "Call: " }}

Output

Call: 555-0199

The prepend filter prefixes an existing string with another string, concatenating the prefix to the front without modifying underlying data.

In programmatic SEO architectures, prepend standardizes protocol prefixes on external partner links or formats localized call-to-action labels. For example: <a href="{{ row.website | prepend: 'https://' }}">Official Site</a>. This ensures generated external links remain valid and uniformly formatted across thousands of vendor profiles.

Try this syntax in the editor.