Archived topic
Local fonts in editor
3 replies · Started by Jan on September 16, 2022
Hi David,
I seem to have the same issue as bjbowen in this threat.
I added...
// GP - Activate local fonts in editor
add_filter( 'generate_editor_styles', function( $editor_styles ) {
$editor_styles[] = 'style.css';
return $editor_styles;
} );
...to the Child theme but the issue is still there. I recorded a short video to demonstrate the issue.
Please let me know your thoughts.
Thanks,
Jan
Hi there,
when you added your local fonts - where did you add the @font-face CSS ?
Hi David,
I added the the @font-face CSS in the Customizer > Additional CSS.
Best,
Jan
Hi Jan,
The code addsstyle.css to the editor, but the place ( Customizer > Additional CSS )where you added the @font-face is not style.css.
Try to add the @font-face CSS to your child theme's style.css file.