-
Notifications
You must be signed in to change notification settings - Fork 18
Editor
Nicolas Juen edited this page Mar 15, 2021
·
4 revisions
Edit the method inc/Services/Editor.php:60 after_theme_setup
Example :
add_theme_support( 'disable-custom-colors' );
add_theme_support( 'disable-custom-gradients' );
add_theme_support(
'editor-color-palette',
[
[
'name' => __( 'Dark green', 'beapi-frontend-framework' ),
'slug' => 'dark-green',
'color' => '#293F06',
],
]
);
add_theme_support(
'editor-font-sizes',
[
[
'name' => __( 'Heading 6', 'beapi-frontend-framework' ),
'shortName' => __( 'S', 'beapi-frontend-framework' ),
'size' => 21,
'slug' => 's',
],
]
);