Skip to content

Instantly share code, notes, and snippets.

@torounit
Created November 15, 2018 18:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torounit/b847c75518ffe1561e61dcba634ab903 to your computer and use it in GitHub Desktop.
Save torounit/b847c75518ffe1561e61dcba634ab903 to your computer and use it in GitHub Desktop.
Gutenberg で選択出来るフォントサイズを変更。
<?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'
]
]);
});
@torounit
Copy link
Author

カラーパレットも似たような感じ
https://richtabor.com/gutenberg-color-palettes/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment