What You’ll Learn in This Article:
- How to install the Limit Text Length extension
- How to configure text truncation using metadata
- How to enable click-to-reveal full text for visitors
Overview
The Limit Text Length extension automatically truncates text in your Digioh campaign when it exceeds a configured character limit, adding an ellipsis (…) at the nearest word boundary. Optionally, visitors can click the truncated text to reveal the full content in a tooltip — useful for product descriptions, long headlines, or any text-heavy campaign element where space is limited.
Installation
Go to your profile menu (top-right), select Extensions, search for Limit Text Length, and click Install.
How It Works
Once installed, the extension scans all campaign elements that have the text_length_limit metadata key configured. If an element’s text exceeds the limit, it is truncated at the nearest word boundary and ... is appended. Elements with no text content, or with an invalid limit value, are silently skipped.
Setting Up Text Truncation
In the Campaign Editor, select the text element you want to limit, open its Metadata panel, and add:
- Key:
text_length_limit - Value: A whole number representing the maximum characters to display (e.g.
80)
Save and Publish. Any text longer than your configured limit will now appear truncated with ... appended.
If the element text already ends with ..., the extension will skip it to prevent double-truncation.
Setting Up Click-to-Reveal Full Text
To let visitors expand the full text on demand, add a second metadata key to the same element:
- Key:
click_show_complete_text - Value: Any non-empty value (its presence activates the feature)
Once published, the truncated text will show a pointer cursor. Clicking it reveals a floating tooltip with the full original text. Clicking again hides it.
Both keys must be on the same element for this to work.
Troubleshooting
Text is not being truncated — confirm text_length_limit is set at the element level (not campaign or account level), and that the value is a valid whole number like 100, not 100px. Also confirm the extension has been published after installation.
Tooltip is not appearing — confirm both text_length_limit and click_show_complete_text are on the same element, and that click_show_complete_text has a non-empty value.
Questions? Reach out to us at support@digioh.com and we’ll be happy to help!