Title: The Events Calendar: Category Colors
Author: Nexcess
Published: <strong>July 1, 2012</strong>
Last modified: September 16, 2025

---

Search plugins

![](https://ps.w.org/the-events-calendar-category-colors/assets/banner-772x250.png?
rev=2560226)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/the-events-calendar-category-colors_52b1d1.
svg)

# The Events Calendar: Category Colors

 By [Nexcess](https://profiles.wordpress.org/stellarwp/)

[Download](https://downloads.wordpress.org/plugin/the-events-calendar-category-colors.7.4.2.zip)

 * [Details](https://wordpress.org/plugins/the-events-calendar-category-colors/#description)
 * [Reviews](https://wordpress.org/plugins/the-events-calendar-category-colors/#reviews)
 * [Development](https://wordpress.org/plugins/the-events-calendar-category-colors/#developers)

 [Support](https://wordpress.org/support/plugin/the-events-calendar-category-colors/)

## Description

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.

### Attribution

Thanks to jonahcoyote for some early help and direction.

Big thanks to Barry Hughes (WebsiteBakery) for refactoring code and Legend Superpowers.

## Screenshots

[⌊The Events Calendar: Category Colors Settings tab⌉⌊The Events Calendar: Category
Colors Settings tab⌉[

The Events Calendar: Category Colors Settings tab

[⌊The Events Calendar: Category Colors in action⌉⌊The Events Calendar: Category 
Colors in action⌉[

The Events Calendar: Category Colors in action

[⌊The Events Calendar: Category Colors with Legend Superpowers in action⌉⌊The Events
Calendar: Category Colors with Legend Superpowers in action⌉[

The Events Calendar: Category Colors with Legend Superpowers in action

## FAQ

### Does the plugin require The Events Calendar plugin?

Yes. [The Events Calendar plugin](https://wordpress.org/plugins/the-events-calendar/)
is written by StellarWP. It requires at least The Events Calendar v5.0.

### What if I use a version of The Events Calendar 2.x?

The last compatible version of this plugin that works with TEC 2.x is [The Events Calendar: Category Colors v1.6.3](https://downloads.wordpress.org/plugin/the-events-calendar-category-colors.1.6.3.zip).

### Where can I get more help?

There is more extensive documentation of the plugins features and usage on the [The Events Calendar: Category Colors wiki](https://github.com/the-events-calendar/the-events-calendar-category-colors/wiki).

### Found a security vulnerability?

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:

 * [Report security bugs through the Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/the-events-calendar-category-colors)
 * Check our [Bug Bounty Program](https://www.liquidweb.com/policies/bug-bounty-program/)
 * Reach out directly to us on `security [at] stellarwp.com`.

### Where can I report bugs?

 1. Add a new topic on the [WordPress Support Forum](https://wordpress.org/tags/the-events-calendar-category-colors).
 2. Add a new issue on the [github repo](https://github.com/the-events-calendar/the-events-calendar-category-colors/issues?state=open).

## Reviews

![](https://secure.gravatar.com/avatar/528bd7458547dbd86b3acf9ad3d9fe1846d43ff71c1e3dab8b4e6abed5f2e410?
s=60&d=retro&r=g)

### 󠀁[[Solved] Not usable](https://wordpress.org/support/topic/not-usable-31/)󠁿

 [elmanuuu](https://profiles.wordpress.org/elmanuuu/) November 15, 2024 4 replies

Has not been working since I installed it 6 weeks ago :/ edit: solved with latest
release

![](https://secure.gravatar.com/avatar/eba16c2d4772340d38d605ea6bb3c1a982926d6b3bfd3b69723570068dffec43?
s=60&d=retro&r=g)

### 󠀁[Disappointed](https://wordpress.org/support/topic/disappointed-125/)󠁿

 [d1abo1904](https://profiles.wordpress.org/d1abo1904/) November 6, 2024

Officially recommended by Events Calendar (/knowledgebase/the-events-calendar-category-
colors/), bugged with new versions of the plugin and time needed for a fix is incredibly
long.

![](https://secure.gravatar.com/avatar/3239eb63fd27a4ef80835abfaf7fb084ffc2759c86c187d23d3e197d188cbde8?
s=60&d=retro&r=g)

### 󠀁[Incredible Support](https://wordpress.org/support/topic/incredible-support-142/)󠁿

 [orsosgriffin](https://profiles.wordpress.org/orsosgriffin/) July 18, 2024 1 reply

Support was extremely responsive to an update issue. This makes an already stellar
plugin even better.

![](https://secure.gravatar.com/avatar/68f0bdcb315fd5a64c6d77e5d0a4085b6b42027e0551f404a379a803d7ce7930?
s=60&d=retro&r=g)

### 󠀁[Excellent support](https://wordpress.org/support/topic/excellent-support-2237/)󠁿

 [viche](https://profiles.wordpress.org/viche/) May 6, 2024 1 reply

Real Go-to guys! Excellent support

![](https://secure.gravatar.com/avatar/5999123009d2c98889f3170c93c4cd60b40ce8d7c0eccc06f46e24e27bf82e06?
s=60&d=retro&r=g)

### 󠀁[Really useful addon plugin for the Events Calendar](https://wordpress.org/support/topic/really-useful-addon-plugin-for-the-events-calendar/)󠁿

 [Manou Allou](https://profiles.wordpress.org/manouallou/) April 8, 2024 1 reply

This is a really nice addition to the Events Calendar plugin. Thank you for your
time and effort. Just hope that it keeps getting updated for future versions of 
WordPress.

![](https://secure.gravatar.com/avatar/d258da96595f81d27a030ae8be549e9cb7c3c1861c731ebfa4c3c3a732acaf8b?
s=60&d=retro&r=g)

### 󠀁[it’s not working with The Event Calendar 6.3.3.1](https://wordpress.org/support/topic/its-not-working-with-the-event-calendar-6-3-3-1/)󠁿

 [hellotaco](https://profiles.wordpress.org/hellotaco/) March 5, 2024 6 replies

Somehow it’s not working with The Event Calendar 6.3.3.1.

 [ Read all 60 reviews ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/)

## Contributors & Developers

“The Events Calendar: Category Colors” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Nexcess ](https://profiles.wordpress.org/stellarwp/)
 *   [ The Events Calendar ](https://profiles.wordpress.org/theeventscalendar/)
 *   [ Andy Fragen ](https://profiles.wordpress.org/afragen/)
 *   [ Barry ](https://profiles.wordpress.org/barryhughes-1/)

“The Events Calendar: Category Colors” has been translated into 5 locales. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/the-events-calendar-category-colors/contributors)
for their contributions.

[Translate “The Events Calendar: Category Colors” into your language.](https://translate.wordpress.org/projects/wp-plugins/the-events-calendar-category-colors)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/the-events-calendar-category-colors/),
check out the [SVN repository](https://plugins.svn.wordpress.org/the-events-calendar-category-colors/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/the-events-calendar-category-colors/)
by [RSS](https://plugins.trac.wordpress.org/log/the-events-calendar-category-colors/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 7.4.2 / 2025-09-16

 * Fix – Resolve problems related to loading the plugin with newer versions of The
   Events Calendar 6.14+

#### 7.4.1 / 2025-02-06

 * Fix – Resolve translation issue that can occur with get_plugin_data(). [TEC-5350]

#### 7.4.0 / 2024-11-14

 * Fix – Make sure we have fully compatible settings save with the new TEC settings
   page.

#### 7.3.2 / 2024-08-20

 * Fix – Resolve problems when Hide option not hiding categories on the frontend.(
   props @afragen) [TEC-5139]

#### 7.3.1 / 2024-07-09

 * Fix – Resolve problem for PHP 8+, avoid passing pass `null` to string specific
   functions. (props @afragen) [TECENG-58]

#### 7.3.0 / 2023-04-29

 * updates to legend superpowers to maintain selection between time selections
 * dim/undim legend superpowers menu items
 * general code improvement of legend superpowers
 * yeah Barry 🙌

#### 7.2.0 / 2023-03-02

 * update `Frontend::show_legend()` to accommodate multiple calendar views on single
   page

#### 7.1.2 / 2023-01-27

 * TEC converted `$view->get_slug()` to `$view::get_view_slug()` in https://github.
   com/the-events-calendar/the-events-calendar/pull/4091
 * add checks for default values being set

#### 7.1.1 / 2022-10-16

 * add `$comma` parameter to `echo_css()` to simplify placement of selectors

#### 7.1.0 / 2022-10-12

 * rename title to correspond to The Events Calendar standard
 * restructure CSS additions to not end with comma, added in `category.css.php`
 * fix empty spacer classes to be transparent
 * add CSS for TEC/ECP 6.0 feature events

#### 7.0.6 / 2022-05-20

 * move all Pro CSS to `CSS\Pro`
 * fix CSS for all day multiday week view
 * update hook name for Events Calendar settings to load admin resources

#### 7.0.5 / 2022-05-17

 * load Superpowers JS on mobile too
 * improve Superpowers JS slug selection, use vanilla JS

#### 7.0.4 / 2022-05-16

 * update Superpowers JS for jQuery `click` and slug selection

#### 7.0.3 / 2022-05-13

 * update past event CSS

#### 7.0.2 / 2022-05-08

 * fix PHP Warning

#### 7.0.1 / 2022-05-04

 * hotfix, `Base_CSS` not being written, stupid mistake on my part

#### 7.0.0 / 2022-05-04

 * rewrite to use `wp_add_inline_style()` for adding CSS, no more file writing
 * WPCS linting
 * update requirements, PHP 7.1, WP 5.2

#### 6.7.1 / 2021-08-20

 * add some error checking, [#132](https://github.com/afragen/the-events-calendar-category-colors/issues/132)

#### 6.7.0 / 2021-08-14

 * update JS for jQuery 3.0, thanks @andrasguseo
 * add Reset button for legend, thanks @andrasguseo
 * add legend for Summary view, thanks @andrasguseo
 * update Settings UI to show/hide options
 * update for new Summary view in ECP
 * only use `esc_attr_e` for translating strings
 * add `teccc_legend_terms` filter
 * update `legend.php`

#### 6.6.0 / 2021-07-07

 * add @10up GitHub Actions for WordPress SVN integration
 * **Reset** button added to legend in settings, navigate back to main calendar,
   thanks @andrasguseo

#### 6.5.0 / 2021-05-16

 * updated to fix CSS url if running on non-standard port
 * updated legend superpowers to work with shortcode, thanks @gustavo
 * add filter `teccc_uploads_dir` to filter the `wp-content/uploads` path.
 * added legend views to Settings, thanks @andrasguseo

#### 6.4.12 / 2021-01-07

 * fix conflict between widget list and multiday events

#### 6.4.11 / 2020-12-5

 * update for widget list [#119](https://github.com/afragen/the-events-calendar-category-colors/issues/119)

#### 6.4.10 / 2020-08-01

 * silence `unlink()`

#### 6.4.9 / 2020-02-28

 * updated all v2 views hook names for showing legend
 * deprecate `teccc_reposition_legend()` with v2
 * deprecate `teccc_remove_default_legend`, just uncheck the setting

#### 6.4.8 / 2020-02-17 – Happy Birthday Dad! 🎂

 * simplify jQuery `on()` for reloading legend superpowers `setup()` and remove 
   conditionals 🤞

#### 6.4.7 / 2020-02-06

 * separate JS conditionals
 * fix stylesheet URL for protocol relative link when host missing

#### 6.4.6 / 2020-02-03

 * improve JS conditional to prevent JS error on non-calendar pages

#### 6.4.5 / 2020-01-31

 * make JS conditional more specific so legend superpowers continue to work after
   prev/next

#### 6.4.4 / 2020-01-30

 * now strip CSS URL scheme to avoid mixed media errors from server

#### 6.4.1 – 6.4.3 / 2020-01-28

 * test explicitly for `$template instanceof \Tribe\Events\Views\V2\Template`, fixes
   bug when also using Events Tickets
 * fix Superpowers JS error, `ReferenceError: Can't find variable: tribe` and `views`

#### 6.4.0 / 2020-01-27

 * explicitly set file permissions to 644 for CSS files
 * updated for new v2 views or TEC and ECP
 * make legend superpowers work for new v2 views, thanks Gustavo!!

#### 6.3.2 / 2019-10-30

 * fixed storage of `cache_key` transient

#### 6.3.1 / 2019-10-24

 * fixed incorrect CSS selector for background colors

#### 6.3.0 / 2019-10-04

 * structural reorganization of plugin
 * update WordPress and PHP requirements to align with The Events Calendar
 * remove `GLOB_BRACE` as unneeded and limiting [#108](https://github.com/afragen/the-events-calendar-category-colors/pull/108),
   thanks @DakuTree

#### 6.2.0

 * add filter to set options hash, hopefully this solves an issue with load balancers
   not having current files
 * change `wp_get_upload_dir()` to `wp_upload_dir()` so that if the directory doesn’t
   exist it is created
 * the above fixes [Writing to CSS file failing](https://wordpress.org/support/topic/writing-to-css-file-failing/),
   thanks @dpegasusm

#### 6.1.1 / 2019-03-09

 * fix PHP notice [#102](https://github.com/afragen/the-events-calendar-category-colors/pull/102)
 * updated `composer.json`
 * update message incompatible PHP version for consistency with WP core

#### 6.0.0 / 2018-10-20

 * move `teccc_get_terms` filter after filters `teccc_add_terms` and `teccc_delete_terms`
 * add default values when using `teccc_add_terms` filter
 * added `class Bootstrap` for plugin loading, now requires PHP 5.4+
 * use `sanitize_hex_color()` for validation of color picker data
 * fixed coloring for _featured events_

#### 5.3.0 / 2018-08-03

 * fixed widget CSS
 * move list CSS to `class Extras`
 * fixed week CSS
 * load stylesheet all the time, more efficient as external file
 * updated `class Main` to `use Tribe__Events__Main` can now use `Tribe__Events__Main::
   TAXONOMY`
 * refactor setup of ignored terms and term data
 * add `border-right` to featured events
 * updated validation code upon saving options
 * use `wp_upload_url()` to for stylesheet to accommodate user directory preferences
 * set SSL corrected URLs for `wp_upload_url()`, [https://core.trac.wordpress.org/ticket/25449](https://core.trac.wordpress.org/ticket/25449)

#### 5.2.2 / 2018-07-28

 * fix to create CSS when files don’t exist

#### 5.2.1 / 2018-7-28

 * cleanup old CSS files

#### 5.2.0 / 2018-07-28

 * write standard and minified CSS to files
 * load minified CSS when WP_DEBUG is false
 * improve minify code
 * update CSS selectors for list view
 * refactor CSS strings for inline format

#### 5.1.0

 * update for new tooltip title as `h3`
 * added some functions for adding deprecated CSS
 * added function `Extras::override_customizer()` for when _Customizer_ settings
   need to be overridden

#### 5.0.1

 * needed a space between CSS parameters, PhpStorm reformat code error

#### 5.0.0

 * add `Default` as text color option which removes CSS color tag
 * Settings will need to be re-saved due to the new settings options

See [CHANGES.md](https://wordpress.org/plugins/the-events-calendar-category-colors/CHANGES.md?output_format=md)
for complete list of changes.

## Meta

 *  Version **7.4.2**
 *  Last updated **10 months ago**
 *  Active installations **5,000+**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/the-events-calendar-category-colors/),
   [English (US)](https://wordpress.org/plugins/the-events-calendar-category-colors/),
   [Galician](https://gl.wordpress.org/plugins/the-events-calendar-category-colors/),
   [German](https://de.wordpress.org/plugins/the-events-calendar-category-colors/),
   [Hungarian](https://hu.wordpress.org/plugins/the-events-calendar-category-colors/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/the-events-calendar-category-colors/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/the-events-calendar-category-colors)
 * Tags
 * [calendar](https://wordpress.org/plugins/tags/calendar/)[category](https://wordpress.org/plugins/tags/category/)
   [color](https://wordpress.org/plugins/tags/color/)[events](https://wordpress.org/plugins/tags/events/)
 *  [Advanced View](https://wordpress.org/plugins/the-events-calendar-category-colors/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  59 5-star reviews     ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/)

## Contributors

 *   [ Nexcess ](https://profiles.wordpress.org/stellarwp/)
 *   [ The Events Calendar ](https://profiles.wordpress.org/theeventscalendar/)
 *   [ Andy Fragen ](https://profiles.wordpress.org/afragen/)
 *   [ Barry ](https://profiles.wordpress.org/barryhughes-1/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/the-events-calendar-category-colors/)