Color picker does not show

Support General Color picker does not showResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33515
    Celine LaguerreCeline Laguerre
    Participant

    HI, i'm using meta box to make a theme option and customizer page and i've got a problem with color field that is display as a simple text input.
    [code]
    array(
    'name' => esc_html__( 'Primary color', 'ids' ),
    'id' => 'primary-color',
    'type' => 'color',
    'value' => '',
    'alpha_channel' => true,
    'js_options' => array(
    'palettes' => array(
    '#125', '#459', '#78b', '#ab0', '#de3', '#f0f'
    ),
    ),

            ),
    

    `

    [/code]
    Any help woul'd be apreciated ^^

    #33516
    Celine LaguerreCeline Laguerre
    Participant

    I have solved the problem by loading select2.full in "select-advanced.php" file

    [code]
    // wp_register_script( 'rwmb-select2', RWMB_JS_URL . 'select2/select2.min.js', array( 'jquery' ), '4.0.10', true );

    wp_register_script( 'rwmb-select2', 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.full.js', array( 'jquery' ), '4.0.13', true );
    [/code]

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.