Support

Home Forums Events Calendar Add-on Empty Times on Calendar View

Empty Times on Calendar View

Posted: July 11, 2012 at 1:44 pm


rjones

July 11, 2012 at 1:44 pm

Empty times on the Calendar view show up as “-“. I’m sure the “-” is the little separator between the start and end times.

Any way to get blank times to NOT show anything while in Calendar view mode?


Josh

  • Support Staff

July 11, 2012 at 2:20 pm

Fill out the times for the event -or- set the calendar settings to not display times.


rjones

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!


Chris Reynolds

  • Support Staff

July 11, 2012 at 3:33 pm

Thanks! I’ve created a ticket to adjust this in 2.0.4 of the calendar (2.0.3 is already done and live).

The support post ‘Empty Times on Calendar View’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso