If you mean color options in the onboard Customizer then that would depend on the theme options.
I am not talking about the theme Customizer, stanordan.
It seems like WordPress uses the Iris color picker. Has anyone used this? It seems like it was introduced in WordPress 3.5. Have there been any changes to Iris from then? Can someone help?
Correct, Iris. The version currently shipped with WP is 1.1.0 beta. It is a hue mode only variant. It was committed late last October. Stable, all mode version is 1.0.7. Iris has been updated a few times since WP 3.5, which was shipped with Iris v0.9.14, dated 2012-11-20.
I’ve only used it in relation to the Customizer, which isn’t really using Iris at all, but using the color control. Generic Iris documentation is available. In WP, you mainly just need to enqueue ‘iris’, the dependencies will be loaded with it. Then assign it to an input element as described in the docs under Usage.
Very helpful reply bcworkz.
Would you happen to know whether Iris supports a Transparent (i.e. no color selected) as one of the choices to pick? I am not talking about the transparency (alpha) of a given color choice. But the widget giving the user a ‘no color’ choice to pick.
It will save me some time if you know the answer right away, instead of me installing and playing with the Iris color picker.
I’ve not seen any indication that a no color pick is even possible. My inclination would be to add a no color check box next to the color input field. When it’s checked the input field is disabled. It of course complicates handling of the color setting, but it makes for a decent UI at least.