-
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 🙂
- You must be logged in to reply to this topic.