Customise entry on calendar
-
I’ve been looking through the settings, but I’m not really sure where to start with customising the calendar entries. What I’m trying to achieve is the following:
- Display the event start and end time in a format such as:
10:00am – 11:00am
I can already achieve this through the configuration settings, including adding a carriage return afterwards using
<br>. I’ve also worked out that I can wrap the time in a<span>class and style it separately in CSS so it appears lighter than the event title. I’m not sure whether this is the best approach or simply the only way of doing it.The issue I’m running into is with our race calendar events. For some of those, I only want to display the start time. While I can suppress the end time itself, the separator dash (
-) still remains because it is treated as plain text.- I’d also like to style the event entries a little differently. Ideally, I’d like either:
- a
|character at the start of the event title, or preferably - a coloured border on the left-hand side of the entry
The idea would be for this colour to inherit the event category colour automatically. I feel this would give a cleaner and more subtle appearance than colouring the full background or text.
Is there a way to customise how these entries are rendered within the calendar? Any pointers on where to start or which templates/hooks I should be looking at would be greatly appreciated.
You must be logged in to reply to this topic.