Support

Home Forums Events Calendar Add-on Hierarchy of Category Colors in Calendar

Hierarchy of Category Colors in Calendar

Posted: August 7, 2012 at 4:05 pm

Viewing 12 reply threads


Jennifer Doyon

August 7, 2012 at 4:05 pm

Hi again –

Can you tell me how the hierarchy of category colors works? 99% of our events will be put in the ‘All Events’ category with an additional category such as ‘Adults.’ Which category color will take precedence? I have added a few test events with multiple categories and they all take the colors of ‘All Events,’ but the one event designated ‘All Events’ and ‘Teens’ takes the Teens color settings (which is how I would like it to operate).

You can see the test calendar at http://www.brookfieldlibrary.org/brkwpress/events-calendar-2/

Thank you!

Jennifer


Jennifer Doyon

August 7, 2012 at 4:08 pm

Clarification:

This event takes the Teens colors: http://www.brookfieldlibrary.org/brkwpress/event-registration-3/?regevent_action=register&event_id=8

While this event takes the All Events colors: http://www.brookfieldlibrary.org/brkwpress/event-registration-3/?regevent_action=register&event_id=18

Both events are categorized as ‘Teens’ and ‘All Events.’


Josh

  • Support Staff

August 7, 2012 at 6:13 pm

Hi Jennifer,

Here is what I would suggest trying: set the “all category” to not use the color pickers feature in the category manager.

Then add this to your WP theme’s custom stylesheet:

.fc-event-inner {
background-color:#26a7d6;
border-color:#26a7d6;
color:#eeeeee;
}

Then the other categories’ inline style rules should override the style rule set in the theme when you have multiple categories for an event.


Jennifer Doyon

August 8, 2012 at 12:26 pm

Hi, Josh –

Unfortunately, events that are in the ‘All Events’ category and another are still taking #26a7d6, the ‘All Events’ category color. Well, except for the one ‘Teens’ event I mentioned in my previous post.

Any other suggestions?

Thanks –
Jennifer


Josh

  • Support Staff

August 8, 2012 at 1:06 pm

Where are the custom styles being added to? Was this a file or a theme option? I’m not seeing them in the page source, but there are lots of places to look, so I might be overlooking them.

Also, can you try updating / re-saving the event with the ID of 18?


Jennifer Doyon

August 8, 2012 at 2:11 pm

The custom style is located in custom.css. I also tried putting it in the main style.css.

Also, how do I change the event ID?


Josh

  • Support Staff

August 8, 2012 at 2:53 pm

Okay, found those, they might need to have a greater degree of specificity, perhaps adding a container div iD might help. I couldn’t find the calendar page to test this idea out, as the link posted above takes me to a 404 page now.

There isn’t a feature in Event Espresso that lets you change the event ID, it would most likely break things if that were possible to do. It can be changed by editing the database tables using phpmyadmin, but I would recommend taking precautions before doing so. Backing up the database would be recommonded before altering the tables.


Jennifer Doyon

August 9, 2012 at 12:47 pm

Still no luck, but thanks for your help!

Jennifer


Josh

  • Support Staff

August 9, 2012 at 12:52 pm

What code did you try? Is the calendar viewable on another page now? This page returns a 404 error when I try to view it.


Jennifer Doyon

August 9, 2012 at 1:34 pm

I tried altering some of the div tags.

It’s viewable at http://www.brookfieldlibrary.org/brkwpress/events/event-calendars/all-events-calendar/


Josh

  • Support Staff

August 10, 2012 at 12:27 pm

You might try this: download and install the classic version of the calendar, and use that plugin instead:
https://eventespresso.com/topic/alternate-calendar-versions-downloads/

Then follow this guide to use category colors in the calendar. Note, the last CSS declaration will override the first, so the category that includes ‘all events’ should have its CSS style rules declared before the other categories.


Jennifer Doyon

August 10, 2012 at 5:40 pm

Hi, Josh –

When I click on the Classic Calendar link from the post, I get this:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied
Access Denied
FFB3F0A2EF9FC278

4SZOzniIEa24FQQ5Nw80KGd6x5w6OjASwoYFnizKGE8LTUgPX45IEIaJG3eMzjoO

Jennifer


Josh

  • Support Staff

August 13, 2012 at 10:55 am

Sorry about that. We are working on re-uploading the classic version of the calendar.

Viewing 12 reply threads

The support post ‘Hierarchy of Category Colors in 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