Custom Fields
Re-Envisioned
Support MB Blocks editor-color-palette instead of Iris Color Picker

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 1 week, 1 day ago.

  • Creator
    Topic
  • #16838

    bodenburgc
    Participant

    Is it possible to use “editor-color-palette” instead of the iris color picker?

    Then define the palette:

    
    add_theme_support( 'disable-custom-colors' );
    add_theme_support( 'editor-color-palette', array(
        array(
            'name'  => __( 'Light gray', 'genesis-sample' ),
            'slug'  => 'light-gray',
            'color'   => '#f5f5f5',
        ),
        array(
            'name'  => __( 'Medium gray', 'genesis-sample' ),
            'slug'  => 'medium-gray',
            'color' => '#999',
        ),
        array(
            'name'  => __( 'Dark gray', 'genesis-sample' ),
            'slug'  => 'dark-gray',
            'color' => '#333',
           ),
    ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.