I want the change the color of the event blocks on the event calendar (http://homeschool-open-source.com/events/) that are a medium blue.
Where do I edit this?
Thanks.

AlphaSmith
Hi Alison,
The colour is taken from the category. So you could assign all the categories the desired colour. Otherwise you can use the following code in a utility plug-in or your theme’s functions.php
:
function alison_assign_default_event_color( $color, $event_id ){
if( empty( $color ) ){
$color = '#84BE6A'; //A shade of green
}
return $color;
}
add_filter( 'eventorganiser_event_color', 'alison_assign_default_event_color', 10, 2 );
Please note that caching may mean that some changes do not appear immediately, but may take up to 24 hours to propgate through. You can clear the cache by “updating” an event.

Stephen Harris
Thanks, Stephen. I’ll try that tomorrow.

AlphaSmith
Following up on this, the code seemed pretty intense for what I wanted to do. I use the Thesis theme, so I was able to change the color just using this code in the Custom CSS file:
.fc-event-inner {
background: #ffc55f !important;
}
Similar fixes might work for others as well. 🙂

AlphaSmith
Hello,
Perhaps things have changed since 2013? I have the following in functions.php
function eo_assign_default_event_color( $color, $event_id ){
if( empty( $color ) ){
$color = '#A34F16'; //rust
}
return $color;
}
add_filter( 'eventorganiser_event_color', 'eo_assign_default_event_color', 10, 2 );
But I still get the calendar output with inline style background-color: rgb(33, 117, 155).
Is there a new way to handle default colors?

oliowork