Site logo

Archived topic

font problem

5 replies · Started by Raul on March 4, 2022

Viewing posts 1–6 of 6

Hi

I have followed the steps to upload a font on the server and I thought that everything is fine.
However, it looks that pages ("lessons") under a certain plugin (LearnDash) do not use that font. Here is an example: https://chess.school/lessons/making-decisions-in-chess/.

What I have done, if I remember all the steps:
1. I have uploaded the font on the server;
2. I have used the code snippet:
add_filter( ‘generate_typography_default_fonts’, function( $fonts ) {
$fonts[] = ‘Oxygen’;
return $fonts;
} )
3. I have added the font Oxygen and disabled 'Google Font'
4. I have used the CSS code given by your recommended website for this. In addition, I've added 'font-display: swap;'
* Now, I have disabled the cache plugin.

Could you, please, help me and tell me if I have installed the font correctly? Then, why it doesn't work everywhere? Thank you for your time!

Hi,

Yes, I have followed those steps and read a lot of other posts from your forum.
However, I am not sure if I have done correctly. I thought so, but then I discovered that some pages ("lessons") do not use that font.

LearnDash has nothing to do with fonts, they don't have any setting for that and their pages are built by creators (me) with their proffered page builder (GenerateBlocks in my case).

I thought you can help me by looking at my page - that's why I had deactivated cache plugins.

Hi there,

in your @font-face CSS change the URLs to the Full URL to the fonts location.

That was so 'simple' and it works now.
Thank you very much, David!

Glad to be of help

This archived topic is closed to new replies.