Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Adding OTF Fonts to GenerateBlocks

  • Hello,

    I’m trying to add a few OTF Fonts to Generate Blocks but they aren’t appearing.

    I’ve uploaded the fonts to a new folder I created in wp-content, then I added in my CSS the @font-face code, and then I added the functions.php file

    add_filter( ‘generate_editor_styles’, function( $editor_styles ) {
    $editor_styles[] = ‘style.css’;

    return $editor_styles;
    } );

    Any help of where I’m going wrong would be greatly appreciated! Thanks!

  • Hi there,

    then I added in my CSS the @font-face code

    Where did you add the @font-face CSS?

  • Hi Ying,

    In the Additional CSS section under customize

  • Can you try adding https:// before the font URLs?

  • Oh man, it was that simple 😭

    I thought I had played with the font urls before, but apparently not.

    Thank you Ying!

  • You are welcome, glad to help 🙂

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