Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress 5/Gutenberg: Disable all color options in blocks
* Disable all color options in Gutenberg
function my_theme_and_gutenberg_adjustments() {
add_theme_support( 'editor-color-palette' );
add_theme_support( 'disable-custom-colors' );
add_action( 'after_setup_theme', 'my_theme_and_gutenberg_adjustments' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment