Support

Home Forums Event Espresso Premium Event Colour Change stopped working on calendar

Event Colour Change stopped working on calendar

Posted: January 28, 2014 at 11:28 am


Thomas Houghton

January 28, 2014 at 11:28 am

Hi,

Hoping you can help with this.. I spoke to you guys a couple of months back about changing the colour of an event to red after it had expired and you gave me some custom CSS which worked great but has now stopped working since updating the calendar:
#espresso_calendar .expired { background-color:red !important; }

basically need the event to go red when it has expired (also would like it to go red when full if possible??)

also for some reason past events are not showing on the calendar which my client has insisted on having.. any help would be much appreciated:)

Kind Regards
Thomas


Tony

  • Support Staff

January 28, 2014 at 11:38 am

Hi Thomas,

Which shortcode are you using to loads the Calendar currently?

The Calendar does not load expired events by default, so you’ll need to use the show_expired parameter with the shortcode, such as:

[ESPRESSO_CALENDAR show_expired=”true”]

The above CSS should still work, once expired events are loading on the calendar again we’ll recheck and see if there’s any reason it no longer does.


Thomas Houghton

January 28, 2014 at 1:00 pm

Hi Tony,

Thank you for the quick response that shortcode worked great cheers but the CSS still isn’t working… also is there a way of making the tooltips look the same as in previous versions?

THsnk you again for your help


Tony

  • Support Staff

January 29, 2014 at 3:04 am

Hi Thomas,

We’ve been able to re-create the issue with the ‘expired’ class locally.

We are currently investigating the cause and will update asap.


Thomas Houghton

January 29, 2014 at 9:07 am

Thanks for the update


Josh

  • Support Staff

January 29, 2014 at 12:45 pm

Hi Thomas,

We found a logic issue in the calendar plugin. We’ll be releasing a fix in the next update to the calendar plugin. If you want to apply the fix manually, you can open up the calendar plugin’s espresso-calendar.php file and remove the else statement that goes after the if that starts on line 600. You’ll end up with this:

if ( $not_open ) 
    $events[ $cntr ]['className'] = 'not-open';

With styling the tooltips to the way they were before, this would require hacking the CSS in the current calendar. The new version has a feature that was added to allow for selecting readymade tooltip themes, so you might want to give those a go.


Thomas Houghton

February 6, 2014 at 4:55 am

Hi just a quick post to let you know that solved my problem thank you guys!

The support post ‘Event Colour Change stopped working on calendar’ 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