Expand the Event Description
When an event description exceeds a certain length, by default, the description gets truncated and requires the user to click Read more to view the full description. Sometimes, you want to ensure that the full event description is shown all the time. This can be achieved by applying a custom template with the modifications explained below.
Creating a Template
-
Scroll down to the first sharing method, Event landing page. Create a custom event landing page template by clicking Custom Templates in the app and clicking + New Template. Add a name for the template.
-
Navigate to the Event landing page section of the event page and click Custom Templates.
-
After clicking it, you can select a custom template you have already made, or you can create a new one by clicking + New Template.
Editing the Custom Template
- On the Custom Template editing page, you will need to replace the
{{block:description}}
block tag in the Code section with the corresponding code from the Block tags section:
- Once that is done, you need to change the value of the parameter
data-truncate
from"true"
to"false"
. The result should look like this:
Change the number of lines to truncate
If you don't want to disable description truncation completely but want to change how many rows should be displayed before the Read more button, you can leave
data-truncate
as"true"
and set the needed number of rows to display indata-truncate-rows
.
Applying a custom template to an event
Once all the needed changes are made, you can apply the modified template to any event.
- Navigate to the event page where you want to use the template.
- Scroll down to the Custom Event page part of the Event landing page section.
- Select the needed custom template from the dropdown and click Set.
Once set, the template will be used to render both the event landing page and the embedded version of the event.
Updated 5 months ago