mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Set default editor font sizes
This commit is contained in:
parent
2c98389753
commit
a2aec78b8b
1 changed files with 31 additions and 0 deletions
|
@ -181,6 +181,37 @@ if ( ! class_exists( 'Storefront' ) ) :
|
||||||
*/
|
*/
|
||||||
add_theme_support( 'editor-styles' );
|
add_theme_support( 'editor-styles' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add support for editor font sizes.
|
||||||
|
*/
|
||||||
|
add_theme_support( 'editor-font-sizes', array(
|
||||||
|
array(
|
||||||
|
'name' => __( 'Small', 'storefront' ),
|
||||||
|
'size' => 14,
|
||||||
|
'slug' => 'small',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Normal', 'storefront' ),
|
||||||
|
'size' => 16,
|
||||||
|
'slug' => 'normal',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Medium', 'storefront' ),
|
||||||
|
'size' => 23,
|
||||||
|
'slug' => 'medium',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Large', 'storefront' ),
|
||||||
|
'size' => 26,
|
||||||
|
'slug' => 'large',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => __( 'Huge', 'storefront' ),
|
||||||
|
'size' => 37,
|
||||||
|
'slug' => 'huge',
|
||||||
|
),
|
||||||
|
) );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enqueue editor styles.
|
* Enqueue editor styles.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue