Closed crunnells closed 5 years ago
While poking around in the editor styles, I noticed that external font resources are being enqueued via @import from editor.css. A better, more portable solution, would be to enqueue it in functions.php via similar code:
@import
editor.css
functions.php
/** * Gutenberg Editor Styles */ function business_theme_editor_styles() { wp_enqueue_style( 'business-theme-fonts', business_theme_fonts_url() ); wp_enqueue_style( 'business-theme-editor-block-style', get_template_directory_uri() . '/editor.css' ); } add_action( 'enqueue_block_editor_assets', 'business_theme_editor_styles' );
That should enqueue any external font resources that were defined in business_theme_fonts_url()
business_theme_fonts_url()
Fixed in 39a9fea89da3e02a616f20f3ac5629ea3249e9ab
While poking around in the editor styles, I noticed that external font resources are being enqueued via
@import
fromeditor.css
. A better, more portable solution, would be to enqueue it infunctions.php
via similar code:That should enqueue any external font resources that were defined in
business_theme_fonts_url()