Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Last active January 16, 2019 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WordPress-Handbuch/8ce9eff746580ace69262a28a0901691 to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/8ce9eff746580ace69262a28a0901691 to your computer and use it in GitHub Desktop.
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