Quantcast
Channel: Disable Gutenberg text-Settings in all blocks - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 5

Answer by Kevinleary.net for Disable Gutenberg text-Settings in all blocks

$
0
0

This was the true, final answer that solved for the exact scenario described in the original question:

/** * Disable Native Gutenberg Features */function gutenberg_removals(){  add_theme_support('disable-custom-font-sizes');  add_theme_support('editor-font-sizes', []);}add_action('after_setup_theme', 'gutenberg_removals');

Passing an empty array to the editor-font-sizes avoid a PHP notice for an invalid argument.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>