Gutenberg – editor-font-sizes in functions not working
I believe to get this working I wasn’t calling this at the correct time, and I wrapped it in a function after_setup_theme, like so: add_action( ‘after_setup_theme’, ‘ttp_custom_font_sizes’ ); function ttp_custom_font_sizes() { // removes custom font sizes add_theme_support(‘disable-custom-font-sizes’); // add my own custom sizes add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => __( ‘Small’), ‘size’ => 12, ‘slug’ … Read more