I’ve been meaning for a while to make this simple little plugin that I like to call Colored Categories which allows you to attach a color to a category in WordPress. Some might ask what you could possibly need this for, but it has practicality in it’s application. Aesthetically it can be used to color coordinate certain categories on your consumer facing site so that certain categories stand out to your audience. Such as differentiating between “World News” & “Local News” you could create such a minute detail in the styling based on the base color for that category. Programmatically you could even pull in a matching color palette based on the base color as well ( possibly an upcoming feature ).
It implements the use of the iris colorpicker which was made by the guys at automattic and implemented as the default picker in WordPress 3.5 if you haven’t used the iris picker yet it’s pretty slick and easy to use anywhere with or without WordPress.
In retrospect though it’s a very simple plugin that does a very specific thing and I hope that it’s useful to some of you out there.
When you activate the plugin it will create a site option array with randomly generated colors for each category. You can then change and edit each individual category color to your liking. To change the color you simply click on the color input box and the colorpicker will pop up below. You then select the color you would like and click on the input box again and the new color is saved via ajax.
If you have ideas for improvements, bugs, etc, please report them on the git repo and not on WordPress.org