Kirki: Output CSS not working

Created on 12 Aug 2016  路  1Comment  路  Source: kirki-framework/kirki

Issue description:

Output CSS not working!!

Version used:

Using theme_mods or options?

Options

Code to reproduce the issue (config + field(s))

               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',
            ),
        ),
    ) );
wontfix

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

2one2 picture 2one2  路  3Comments

manuelmoreale picture manuelmoreale  路  3Comments

fakrulislam picture fakrulislam  路  3Comments

rinkuyadav999 picture rinkuyadav999  路  4Comments

rahulv3a picture rahulv3a  路  3Comments