Site logo

[Resolved] Enqueuing Local Font into Block Editor (Stopped Working)

Home Forums Support [Resolved] Enqueuing Local Font into Block Editor (Stopped Working)

Home Forums Support Enqueuing Local Font into Block Editor (Stopped Working)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2106033
    Kyle Van Deusen

    I’ve had a little snippet that I got from this forum enqueuing my local font into the block editor (so the correct font displays while I’m editing) since I started the site.

    It’s this one:

    add_action( 'enqueue_block_editor_assets', function() {
        wp_enqueue_style( 'local-fonts', 'https://ogalweb.com/wp-content/themes/generatepress_child/fonts.css' );
    } );

    It’s always worked fine — but all of a sudden, the body text is no longer displaying properly. I’m not sure when it happened, but it had to be after WP5.9 and the recent GP updates.

    The headline font, which is the same font, displays fine — but any of the paragraphs do not.

    Font End: https://nimb.ws/Q2OYi1

    Back End: https://nimb.ws/nOkShW

    Has anyone else had this stop working suddenly?

    #2106036
    Kyle Van Deusen

    Okay, so it seems checking the box for “Use dynamic typography system” fixed the issue! Resolved 😬

    #2106080
    David
    Staff
    Customer Support

    Glad to hear you found the answer!!

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