Last active
January 16, 2019 11:02
-
-
Save WordPress-Handbuch/8ce9eff746580ace69262a28a0901691 to your computer and use it in GitHub Desktop.
WordPress 5/Gutenberg: Disable all color options in blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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