Support

Home Forums Events Calendar Add-on Empty Times on Calendar View Reply To: Empty Times on Calendar View

Reply To: Empty Times on Calendar View

Author Replies
rjones # Posted on July 11, 2012 at 3:12 pm

> set the calendar settings to not display times

Yes – I can do that but the event doesn’t have a time (it’s all day) AND a much more elegant solution would be to do a check for a value and print ONLY if there is a value present.

I’ve dug in the code adjusted that feature.

Here is the quick solution I came up with:

Version: Expresso Calendar 2.0.1
File: wp-content\plugins\espresso-calendar.2.0.1\espresso-calendar.php
Line: 570
Code (Replace line 570 with the following code):
if(event.startTime != ”)
element.find(‘.fc-event-title’).after($jaer(” + event.startTime + ‘ – ‘ + event.endTime + ”));
else
element.find(‘.fc-event-title’).after($jaer(”));

Bolded code is the new code

Enjoy!

Do NOT follow this link or you will be banned from the site!