Alpha color not working and debug error
-
Following the instructions at https://aristath.github.io/kirki/docs/controls/color.html I added
'choices' => array( 'alpha' => true )
to my color field but it doesn’t work –
I don’t get the opacity slider in the color selector.I tried doing it the old fashion way by simply adding
'alpha' => true,
directly into the arguments. That does show the opacity slider, but then js_vars is broken.Also, adding
'alpha' => true,
directly to the arguments throws the following debug error:Notice: Kirki::add_field was called incorrectly. Do not use “alpha” as an argument in color controls. Use “choices[alpha]” instead.
But on saving it does save the rgba color as it should. Is this a bug or am I missing something?
Thanks
- The topic ‘Alpha color not working and debug error’ is closed to new replies.