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

  • Creator
    Topic
  • #16838
    Resolved 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.
grid gear info copy caret-up caret-down trash