Aleš Sýkora / September 22, 2022 / 0 comments

Disable Gutenberg gradient picker

Post summary: If you want to disable gradient picker in Gutenberg editor in Wordpress, add this code to your functions.php or custom plugin or code snippets plugin like Advanced scripts. You may also need to change default Gutenberg colors.

If you want to disable gradient picker in Gutenberg editor in WordPress, add this code to your functions.php or custom plugin or code snippets plugin like Advanced scripts. You may also need to change default Gutenberg colors.

/*Disable gradients*/
add_theme_support('editor-gradient-presets', []);
add_theme_support('disable-custom-gradients', true);

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts