-
Notifications
You must be signed in to change notification settings - Fork 19
Adding Additional Text Colors
By default, The Events Calendar Category Colors provides a choice of three text colors - black, white and grey. This is sufficient for the vast majority of cases but there may be times when you wish to work to a very particular color scheme and need something different.
Adding additional text colors can be done by inserting a single line of code into your theme's functions.php file (or some other suitable place) - something like this:
teccc_add_text_color('Imperial Crimson', '#fe5420');
You can add as many additional colors as you like. They should then be available from within the Category Colors settings tab:
Please note that you must pass a valid color value that will be understood in the context of a cascading stylesheet. For example, #fa0 (hash symbol and three digits) or #5690bb (hash symbol and six digits) - invalid color values are unlikely to achieve the results you are looking for!
Be sure to refer to Customizing Category Colors Plugin for the proper implementation of settings.