data-truncate to truncate text to a set character count on page load. text-overflow for precise truncation; use JavaScript or substring in code embeds instead.Yes, Webflow CMS text can be automatically truncated on a page, but it requires a workaround since Webflow doesn’t support truncating character counts out-of-the-box through its Designer. Here’s how to do it.
data-truncate="100" to indicate you want 100 characters).
Since Webflow can't truncate by characters natively, add a small custom script in your Site Settings or on the Page Settings in the Before </body> tag section.
Example approach:
textContent.slice(0, 100) + '…'.
Important: Webflow itself does not provide native character-based truncation; doing this with JavaScript is necessary for full control and consistent output.
text-overflow: ellipsis can visually truncate text but:
substring in Custom Code Embed
substring() and CMS field references like {{cms-field-name}}.
Webflow does not natively support truncating CMS text by a specific character count (e.g., 100 characters), but you can accomplish it using custom JavaScript targeting text elements post-render. Avoid relying on CSS text-overflow if you need a precise snippet length.