5,000+
September 16, 2025
July 1, 2012
Add background colors to event categories displayed in the event views of The Events Calendar. This is inspired by the post Coloring Your Category Events.
Settings for The Events Calendar: Category Colors plugin are located in their own tab on The Events Calendar Settings page.
To force a refresh of your CSS, add ?refresh_css to the end of your events URL, or re-save the Settings.
Thanks to jonahcoyote for some early help and direction.
Big thanks to Barry Hughes (WebsiteBakery) for refactoring code and Legend Superpowers.
No installation instructions provided.
Yes. The Events Calendar plugin is written by StellarWP. It requires at least The Events Calendar v5.0.
The last compatible version of this plugin that works with TEC 2.x is The Events Calendar: Category Colors v1.6.3.
There is more extensive documentation of the plugins features and usage on the The Events Calendar: Category Colors wiki.
Make sure you are reporting in a safe and responsible way. We take security very seriously. If you discover a security issue, please bring it to our attention right away! Below you will find all the methods to report security vulnerabilities:
security [at] stellarwp.com.null to string specific functions. (props @afragen) [TECENG-58]Frontend::show_legend() to accommodate multiple calendar views on single page$view->get_slug() to $view::get_view_slug() in https://github.com/the-events-calendar/the-events-calendar/pull/4091$comma parameter to echo_css() to simplify placement of selectorscategory.css.phpCSS\Proclick and slug selectionBase_CSS not being written, stupid mistake on my partwp_add_inline_style() for adding CSS, no more file writingesc_attr_e for translating stringsteccc_legend_terms filterlegend.phpteccc_uploads_dir to filter the wp-content/uploads path.unlink()teccc_reposition_legend() with v2teccc_remove_default_legend, just uncheck the settingon() for reloading legend superpowers setup() and remove conditionals 🤞$template instanceof \Tribe\Events\Views\V2\Template, fixes bug when also using Events TicketsReferenceError: Can't find variable: tribe and viewscache_key transientGLOB_BRACE as unneeded and limiting #108, thanks @DakuTreewp_get_upload_dir() to wp_upload_dir() so that if the directory doesn’t exist it is createdcomposer.jsonteccc_get_terms filter after filters teccc_add_terms and teccc_delete_termsteccc_add_terms filterclass Bootstrap for plugin loading, now requires PHP 5.4+sanitize_hex_color() for validation of color picker dataclass Extrasclass Main to use Tribe__Events__Main can now use Tribe__Events__Main::TAXONOMYborder-right to featured eventswp_upload_url() to for stylesheet to accommodate user directory preferenceswp_upload_url(), https://core.trac.wordpress.org/ticket/25449h3Extras::override_customizer() for when Customizer settings need to be overriddenDefault as text color option which removes CSS color tagSee CHANGES.md for complete list of changes.
| Version | Download | Type |
|---|---|---|
| 7.4.2 | Download | Stable |
| 7.4.1 | Download | Stable |
| 7.4.0 | Download | Stable |
| 7.3.2 | Download | Stable |
| 7.3.1 | Download | Stable |
| 7.3.0 | Download | Stable |
| 7.2.0 | Download | Stable |
| 7.1.2 | Download | Stable |
| 7.1.1 | Download | Stable |
| 7.1.0 | Download | Stable |
| 7.0.6 | Download | Stable |
| 7.0.5 | Download | Stable |
| 7.0.4 | Download | Stable |
| 7.0.3 | Download | Stable |
| 7.0.2 | Download | Stable |
| 7.0.1 | Download | Stable |
| 7.0.0 | Download | Stable |
| 6.7.1 | Download | Stable |
| 6.7.0 | Download | Stable |
| 6.6.0 | Download | Stable |
| 6.5.0 | Download | Stable |
| 6.4.12 | Download | Stable |
| 6.4.11 | Download | Stable |
| 6.4.10 | Download | Stable |
| 6.4.9 | Download | Stable |
| 6.4.8 | Download | Stable |
| 6.4.7 | Download | Stable |
| 6.4.6 | Download | Stable |
| 6.4.5 | Download | Stable |
| 6.4.4 | Download | Stable |
| 6.4.3 | Download | Stable |
| 6.4.2 | Download | Stable |
| 6.4.1 | Download | Stable |
| 6.4.0 | Download | Stable |
| 6.3.2 | Download | Stable |
| 6.3.1 | Download | Stable |
| 6.3.0 | Download | Stable |
| 6.2.0 | Download | Stable |
| 6.1.2 | Download | Stable |
| 6.1.1 | Download | Stable |
| 6.1.0 | Download | Stable |
| 6.0.0 | Download | Stable |
| 5.3.0 | Download | Stable |
| 5.2.2 | Download | Stable |
| 5.2.1 | Download | Stable |
| 5.2.0 | Download | Stable |
| 5.1.0 | Download | Stable |
| 5.0.1 | Download | Stable |
| 5.0.0 | Download | Stable |
| 4.7.0 | Download | Stable |
| 4.6.11 | Download | Stable |
| 4.6.10 | Download | Stable |
| 4.6.9 | Download | Stable |
| 4.6.8 | Download | Stable |
| 4.6.7 | Download | Stable |
| 4.6.6 | Download | Stable |
| 4.6.5 | Download | Stable |
| 4.6.4 | Download | Stable |
| 4.6.3 | Download | Stable |
| 4.6.2 | Download | Stable |
| 4.6.1 | Download | Stable |
| 4.6.0 | Download | Stable |
| 4.5.1 | Download | Stable |
| 4.5.0 | Download | Stable |
| 4.4.5 | Download | Stable |
| 4.4.4 | Download | Stable |
| 4.4.3 | Download | Stable |
| 4.4.2 | Download | Stable |
| 4.4.1 | Download | Stable |
| 4.4.0 | Download | Stable |
| 4.3.5 | Download | Stable |
| 4.3.4 | Download | Stable |
| 4.3.3 | Download | Stable |
| 4.3.2 | Download | Stable |
| 4.3.1 | Download | Stable |
| 4.3.0 | Download | Stable |
| 4.2.0 | Download | Stable |
| 4.1.0 | Download | Stable |
| 4.0.3 | Download | Stable |
| 4.0.2 | Download | Stable |
| 4.0.1 | Download | Stable |
| 4.0.0 | Download | Stable |
| 1.6.3 | Download | Stable |
| Development | Download | Trunk |