-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Description
Setting brand colours no longer works in gutenberg it's working fine in WP 5.8.2 it is not working in Gutenberg Version 11.9.0
Core colours can no longer be removed.
Removing "core" colours is VITAL for branded corporate sites.
PHP support is VITAL for established sites and those being developed away from your bleeding edge
Step-by-step reproduction instructions
METHOD
in PHP enter this in a theme functions.php
function sc_custom_gutenberg_custom_color_palette() { add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Light Text', 'sc' ), 'slug' => 'light-text', 'color' => '#FFFFFF', ), array( 'name' => __( 'Darker Text', 'sc' ), 'slug' => 'darker-text', 'color' => '#535353', ), array( 'name' => __( 'Amaranth', 'sc' ), 'slug' => 'main-amaranth', 'color' => '#E23448', ), ) ); } add_action( 'after_setup_theme', 'sc_custom_gutenberg_custom_color_palette', 20 );
the editor will continue to show the awful "core" colours + the new array
Screenshots, screen recording, code snippet
WP 5.8.2 core - colours can be set correctly
Gutenberg Version 11.9.0 - awful colours persist
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes