Widget Titles
-
On the All-in-One Event Calendar widget, it won’t allow me to have event titles longer than, it looks like 35 characters before it just adds … like the following:
6:00 pm Coffee Event – Talking over coffe… @ Cafe Place
What can I alter (and/or what files should I look in) in the code to enable longer event titles in the widget to display properly. Thanks!
-
If this is just the widget:
Edit agenda-widget.twig and on line 48 change:
{{ event.get_runtime( 'filtered_title' ) | truncate | raw }}To:
{{ event.get_runtime( 'filtered_title' ) | raw }}Notes:
This applies to 2.1.5 and below. 2.1.6 (when released) will change this twig code, though the principle (removing thetruncatefilter) will be the same.
agenda-widget.twig is in …../all-in-one-event-calendar/public/themes-ai1ec/vortex/twig/ though the best option here really is to create a calendar child theme (see for info), this might not be worth you doing till 2.1.6 is released, since a number of functions that twig files use will change.
You may need to clear the calendar cache directory if the change doesn’t appear to work. To do so, you need to delete the contents of …../all-in-one-event-calendar/cache/twig/ (which will contain a bunch of directories). The cache will automatically rebuild and your change should then be visible.
The topic ‘Widget Titles’ is closed to new replies.