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.

Requires PHP 5.3 or greater.

Attribution

Thanks to jonahcoyote for some early help and direction.

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

Translations courtesy of:

Screenshots

  • The Events Calendar Category Colors Settings tab
  • The Events Calendar Category Colors in action
  • The Events Calendar Category Colors with Legend Superpowers in action

Installation

  1. Upload the entire /the-events-calendar-category-colors/ folder to the /wp-content/plugins/ directory.
  2. Activate the plugin.
  3. Go to the Category Colors tab of The Event Calendar Settings page.

FAQ

Installation Instructions
  1. Upload the entire /the-events-calendar-category-colors/ folder to the /wp-content/plugins/ directory.
  2. Activate the plugin.
  3. Go to the Category Colors tab of The Event Calendar Settings page.
Does the plugin require The Events Calendar plugin?

Yes. The Events Calendar plugin is written by Modern Tribe, Inc. It requires at least The Events Calendar v3.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.

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.

Where can I report bugs?
  1. Add a new topic on the WordPress Support Forum.
  2. Add a new issue on the github repo.

Reviews

Fantastic plugin, support

Andy Fragen has done an amazing job with this free plugin for The Events Calendar. Very easy to set up and manipulate. If it were possible, I’d give this a sixth star because of the incredibly helpful troubleshooting and support that Andy provides on the forum and GitHub.

awesome thanks andy!

needed a little tweaking to get just right with my avada theme – andy worked it out and upgraded the plugin and it’s working perfect now. awesome job and awesome plugin! thanks!

Great Plugin!

This is a GREAT plugin. Simple to setup. Simple to use. Did exactly what I wanted it to do. Thank you very much!!!

Read all 38 reviews

Contributors & Developers

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

Contributors

Changelog

4.6.6

  • added more shortcodes to list for support
  • updated some week view CSS

4.6.5

  • fixed ECP week view
  • added support for ECP week view shortcode
  • make Autoloader a drop-in

4.6.4

  • move graceful exit to just before plugin initialization

4.6.3

  • added support for tribe shortcodes
  • graceful failure if The Events Calendar is not active

4.6.2

  • added CSS selector to override Customizer month view

4.6.1

  • added filters and functions to provide WPML compatibility thanks @jvier for testing

4.6.0

  • added our own PHP version check
  • added filter teccc_fix_category_background_color for those pesky themes that have Events Calendar specific CSS, I’m looking at you Avada

4.5.1

  • moved older changes into CHANGES.md
  • modified filter teccc_fix_category_link_color for those really pesky themes. The modification will require an adjustment to the way the filter is called and returned. Refer to the wiki for details.
  • above filter modification fixes issue with Read More links.

4.5.0

  • added filter teccc_fix_category_link_color for those pesky themes that override everything.
  • fixed ETag header in CSS
  • removed Filter Bar coloring
  • further optimized CSS minification

4.4.6

  • refactor mobile CSS and add filter teccc_mobile_css

4.4.5

  • fix superpowers to be more inclusive in find – thanks Lisa

4.4.4

  • fix to display title full width, most noticeable in photo view
  • sorry about all the quick updates, just trying to fix issues as I’m made aware of them.

4.4.3

  • fix for mobile TEC 4.0

4.4.2

  • fix week view all day color

4.4.1

  • fix week view link color

4.4.0

  • update for The Events Calendar 4.0
  • fix for WordPress installation in subfolder – thanks @IndigoStarfish
  • tested to WordPress 4.4

4.3.5

  • escape all things for better security
  • tweak declaration/initiation of variables
  • tested to 4.3

4.3.4

  • change CSS load order to ( PHP_MAX_INT – 100 ) to allow for overriding

4.3.3

  • fix for PHP notice on Settings

4.3.2

  • fix for v3.10 all day week view.

4.3.1

  • update for Tribe__Events__Filterbar__View with CSS fix too.

4.3.0

  • update for new Tribe__Events__Main and Tribe__Events__Pro__Main classes
  • fix CSS for week view

4.2.0

  • add setting to show hidden categories – for @mending

4.1.0

  • add setting to hide category on frontend
  • fix a number of PHP notices

4.0.3

  • fix for fatal error. Need to load namespaced class as variable as PHP < 5.3 chokes.

4.0.2

  • quick fix for fatal error, I think due to naming method in WPUpdatePhp

4.0.1

  • don’t use variable for class name
  • switch PHP version check to use WPUpdatePhp

4.0.0

  • don’t minify CSS when ?debug_css – this to help in debugging
  • requires PHP 5.3 or greater as requires namespacing

  • class aliases for backwards compatibility for users of ECP 3.9 or lower

  • renamed directory and class names to allow for PSR 4 loading
  • fix all text domain slugs and update POs
  • add CSS selectors for TEC 3.10

See CHANGES.md for complete list of changes.