• In multicolor field, labels from colour pickers are missing. Code:

    Kirki::add_field( $textdomain, [
        'type'        => 'multicolor',
        'settings'    => 'multicolor_setting',
        'label'       => esc_html__( 'Label', $textdomain ),
        'section'     => 'header__top_bar__general',
        'priority'    => 10,
        'choices'     => [
            'link'    => esc_html__( 'Color', $textdomain ),
            'hover'   => esc_html__( 'Hover', $textdomain ),
            'active'  => esc_html__( 'Active', $textdomain ),
        ],
        'default'     => [
            'link'    => '#0088cc',
            'hover'   => '#00aaff',
            'active'  => '#00ffff',
        ],
    ] );

    result:

    https://ibb.co/GMj0Bfp

    Console log:

    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
    
    common.min.js?ver=5.7.1:2
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
    
    common.min.js?ver=5.7.1:2
    wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
    
    common.min.js?ver=5.7.1:2
    wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
    
    common.min.js?ver=5.7.1:2

    WP 5.7.1, Kirki 3.1.6 from repository, theme_mod

    • This topic was modified 3 years, 7 months ago by Damian P..
    • This topic was modified 3 years, 7 months ago by Damian P..
  • The topic ‘URGENT! Missing label in multicolor!’ is closed to new replies.