Created
November 15, 2018 18:39
-
-
Save torounit/b847c75518ffe1561e61dcba634ab903 to your computer and use it in GitHub Desktop.
Gutenberg で選択出来るフォントサイズを変更。
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
<?php | |
add_action( 'after_setup_theme', function() { | |
add_theme_support('editor-font-sizes', [ | |
[ | |
'name' => 'Small', | |
'size' => 12, | |
'slug' => 'small' | |
], | |
[ | |
'name' => 'Normal', | |
'size' => 14, | |
'slug' => 'normal' | |
], | |
[ | |
'name' => 'medium', | |
'size' => 16, | |
'slug' => 'medium' | |
] | |
]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
カラーパレットも似たような感じ
https://richtabor.com/gutenberg-color-palettes/