Output CSS not working!!
Options
Kirki::add_config( 'theme_config', array(
'option_name' => 'theme_options',
'capability' => 'edit_theme_options'
) );
Kirki::add_field( 'my_config', array(
'settings' => 'theme_custom_color',
'label' => __( 'Select Custom Theme color', 'theme' ),
'section' => 'theme_section',
'type' => 'color',
'default' => '#000000',
'output' => array(
array(
'element' => 'a',
'property' => 'color',
),
),
) );
took me a while to see the error but it's actually pretty simple.
you're defining a theme_config config, and then in the field you're using my_config instead.
Please use the same config ID everywhere. As soon as you do, it works fine.
Most helpful comment
took me a while to see the error but it's actually pretty simple.
you're defining a
theme_configconfig, and then in the field you're usingmy_configinstead.Please use the same config ID everywhere. As soon as you do, it works fine.