Support

Home Forums Events Calendar Add-on Calendar – Event Category Colors Not Working After Upgrade

Calendar – Event Category Colors Not Working After Upgrade

Posted: May 5, 2013 at 8:12 pm


Greg Davis

May 5, 2013 at 8:12 pm

After the release upgrade, the events on my client’s event calendar all have the same background color (blue).  https://kennett-design.com/calendar/

We had it set so that a certain category was one color (red) and another category was the blue.   This differentiation is not longer working.  I had used custom CSS after copying the espresso_default.css file to the espresso templates folder of the wp-content / uploads area.

The customer css is as follows where the first part is the class name of the category.

.two-hour-classes-1358025322 .fc-event-skin {

background-color: #770715 !important;

}

 

.three-hour-classes-1358383923 .fc-event-skin {

background-color: #01448b !important;

}

How do I get this working again?


Dean

May 6, 2013 at 3:50 am

Hi Greg,

I have looked at the latest version and the category colours are working fine. In my example I just set the colours in the category itself and obviously set the event to the right category.

Category – http://d.pr/i/9r9C

Calendar – http://d.pr/i/Q7V

I would try it that way, and then you are not relying on additional css, but the plugin itself.

If you want to use your CSS route, go check the Calendar settings, I think that the Enable CSS for Categories option may have reset to No, and if so the category names wont appear as CSS classes.


Greg Davis

May 6, 2013 at 4:31 am

Hi Dean –

I had to go the CSS route in the previous release because most of our events have more than one category assigned to them.  For example a category is either 2-hour event or 3-hour event, but it also has a category that is the artists name (which allows us to easily create a page for the artist and then use the upcoming events and calendar widget to display the events for that artist).  We use the 2-hour or 3-hour category to visually give a clue about how long the event is and it’s difficulty level.  Without the use of CSS based on category, it just takes the color of one of the categories.

I checked and the option to enable CSS for categories is still enabled in the calendar settings.

Any ideas?


Dean

May 6, 2013 at 5:18 am

You are absolutely right, I must have been looking at the older version. It appears in 2.0.5 the category as css class is not being added. I’ll get a ticket raised on this to find out why. Sorry about that we will get it fixed!


Josh

  • Support Staff

May 6, 2013 at 10:28 am

Hi Greg,

If you go into the Calendar Settings, and scroll to the bottom of the page and look under Memory Management, are categories enabled or disabled?


Greg Davis

May 6, 2013 at 10:58 am

The “Disable Categories” setting is set to “No”.  Here is a screen shot: http://screencast.com/t/zT3N8FYTrW4


Bri Laub

May 6, 2013 at 11:33 am

I am also having this issue. Is there a fix?


Jennifer Doyon

May 6, 2013 at 12:03 pm

I am also having a problem with category colors since the upgrade and hope there’s a fix in the works.  I have several calendars for different categories on my site, and the colors are only working on some of the calendars.

Jennifer


Peter

May 6, 2013 at 2:02 pm

I initially had this problem, though the colors were still showing under the calendar settings. Hitting save changes restored my colors.


Josh

  • Support Staff

May 6, 2013 at 3:52 pm

For those who are missing the class names for using Event Category colors with CSS, there is a hotfix that we are testing. You can upload this file to the espresso-calendar plugin folder (replacing the existing espresso-calendar.php file) to try out the fix:

espresso-calendar.php


Greg Davis

May 6, 2013 at 7:34 pm

Thanks Josh.  Oddly, that did help on some, but not all.  You can see on this page: https://kennett-design.com/calendar/

The events that are 2 hours long should be red and the 3 hour events dark blue.  Some are, some are not. I did verify that 2 hour events that are not red do have the 2-hour category selected.  Seems like the ones that are not red are not putting out the class name in the output.

Greg


Sarah Schoeller

May 6, 2013 at 9:28 pm

I’m having the same problem, plus the icons has disappeared from the calendar widget and the width of the widget has increased and is now cut off in my sidebar.

Can the old widget be bought back?


Josh

  • Support Staff

May 7, 2013 at 10:20 am

Hi Greg,

I checked on one of the two hour events and the class name that is being output is jarredfisher, so you may need to add that class name as one of your selectors for red events.


Josh

  • Support Staff

May 7, 2013 at 10:28 am

@ Sarah Schoeller

We will take a look at the issue with the calendar widget. Can you start a new topic on this?


Jennifer Doyon

May 8, 2013 at 1:58 pm

Hi, Josh –

I replaced the espresso-calendar.php file and tried assigning colors in the stylesheet, both with no luck.  The odd thing is that the colors do show on the calendar of all events, but not when viewing specific categories.

Thank you for any additional help you can provide.
Jennifer


Josh

  • Support Staff

May 8, 2013 at 2:14 pm

Hi Jennifer,

Is there a page you can post a link to so we can take a look? Also, I don’t want to assume anything, is this a page where the calendar shortcode is filtering the events and showing events from one category?


Emanuel Mizrahi

May 8, 2013 at 6:22 pm

Hi I have the same problem when I update the new version .

find out what the problem , just need to go calendar setting and under theme setting change the

Use Color Pickers to yes , that all

good luck


Emanuel Mizrahi

May 8, 2013 at 7:25 pm

it’s only work if you show all the event in one Calendar , but if you show one category it show

the same color for all the event – don’t know why ?.


Josh

  • Support Staff

May 9, 2013 at 8:58 am

Hi Emanuel,

Each category can be assigned to a different color. So if you’re looking at a calendar that is displaying one category, all the events in the calendar will display the color they’ve been assigned.


Jennifer Doyon

May 9, 2013 at 9:00 am

Hi, Josh –

Did you get the message I posted yesterday with links to the ‘working’ and ‘non-working’ calendars?  I tried to post my response several times, but it never appeared in this thread.

Thanks –
Jennifer


Mark Wittenberg

May 9, 2013 at 9:43 am

I’m having this problem too.

Is there a fix?


Mark Wittenberg

May 9, 2013 at 9:45 am

Actually, I did what Emanuel Mizrahi said, and it fixed it. Thank god.


Josh

  • Support Staff

May 9, 2013 at 1:12 pm

Hi Jennifer,

I don’t see any other posts, can you try posting a new thread and include the links there? Thanks!

The support post ‘Calendar – Event Category Colors Not Working After Upgrade’ 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