Hi @kamilionare,
I was not able to replicate this on my end. The alpha color picker works fine for me with the current version of WordPress and the upcoming 5.5 release.
Code I used to test:
Kirki::add_field( 'theme_config_id', [
'type' => 'color',
'settings' => 'color_setting_rgba',
'label' => __( 'Color Control (with alpha channel)', 'kirki' ),
'description' => esc_html__( 'This is a color control - with alpha channel.', 'kirki' ),
'section' => 'kirki_options',
'default' => '#0088CC',
'choices' => [
'alpha' => true,
],
] );
I have this code, and check screen results please
Kirki::add_field( ‘kirki’, [
‘type’ => ‘color’,
‘settings’ => ‘my_id’,
‘description’ => esc_html__( ‘Content text color’ ),
‘section’ => ‘contstyl’,
‘default’ => ‘#999’,
‘transport’ => ‘auto’,
‘choices’ => [
‘alpha’ => true,
],
‘output’ => [
[
‘element’ => ‘p, .oxntags.textcenter > a’,
‘property’ => ‘color’,
],
screen https://ibb.co/fx7pD5m
Looks like your code is missing closing tags at the bottom, please try this:
Kirki::add_field( 'kirki', [
'type' => 'color',
'settings' => 'my_id',
'description' => esc_html__( 'Content Text Color' ),
'section' => 'contstyl',
'default' => '#999',
'transport' => 'auto',
'choices' => [
'alpha' => true,
],
'output' => [
[
'element' => 'p',
'property' => 'color',
],
],
] );
It is there closed. Please, sorry I’m just not copying fully code. Any way the unclosed tag will call fatal error.
Can you try if this works with the TwentyTwenty theme installed, the latest version of the Kirki plugin activated and the code above added to the functions.php?
It does work for me so I’m assuming something else is conflicting with Kirkis color picker.
Yes, it works there.
Don’t know why, but it happened when I have moved the website to another domain. 🙁
I got this error on my console:
wp-color-picker-alpha.js?ver=3.1.3:21 Uncaught TypeError: Cannot read property ‘__’ of undefined
at wp-color-picker-alpha.js?ver=3.1.3:21
at wp-color-picker-alpha.js?ver=3.1.3:478
–
Maybe you have some ideas to solve this?
I have already cleaned all the transitions and cache
This is going to be fixed with the next release! 🙂
Best,
David