Posted: 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 |
|
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.’ |
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:
Then the other categories’ inline style rules should override the style rule set in the theme when you have multiple categories for an event. |
|
|
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 – |
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? |
|
|
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? |
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. |
|
|
Still no luck, but thanks for your help! Jennifer |
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. |
|
|
I tried altering some of the div tags. It’s viewable at http://www.brookfieldlibrary.org/brkwpress/events/event-calendars/all-events-calendar/ |
You might try this: download and install the classic version of the calendar, and use that plugin instead: 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. |
|
|
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.
4SZOzniIEa24FQQ5Nw80KGd6x5w6OjASwoYFnizKGE8LTUgPX45IEIaJG3eMzjoO Jennifer |
Sorry about that. We are working on re-uploading the classic version of the calendar. |
|
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.