Site logo

[Support request] Adding local fonts and editing post fonts don’t match

Home Forums Support [Support request] Adding local fonts and editing post fonts don’t match

Home Forums Support Adding local fonts and editing post fonts don’t match

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1741534
    a1reno

    Hi,

    I followed this guide (https://docs.generatepress.com/article/adding-local-fonts/) around two weeks ago and everything is up and working fine.

    Since then I have noticed that in the ‘edit post’ screen the font doesn’t match the new added local font I am using. My selected system font is Montserrat but it looks like the one in my editor is something similar to Times New Roman.

    Do you know what the issue is?

    Thanks in advance!

    #1742373
    Elvin
    Staff
    Customer Support

    Hi there,

    You’ll have to enqueue the stylesheet containing the fonts for block editor use.

    add_action( 'enqueue_block_editor_assets', function() {
        wp_enqueue_style( 'your-handle', 'URL TO YOUR FILE' );
    } );

    See similar questions here:
    https://generatepress.com/forums/topic/issue-installing-fonts-locally/

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