[Support request] Local fonts in editor

Home Forums Support [Support request] Local fonts in editor

Home Forums Support Local fonts in editor

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2344672
    Jan

    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

    #2344786
    David
    Staff
    Customer Support

    Hi there,

    when you added your local fonts – where did you add the @font-face CSS ?

    #2345180
    Jan

    Hi David,

    I added the the @font-face CSS in the Customizer > Additional CSS.

    Best,
    Jan

    #2345229
    Ying
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.