Site logo

Archived topic

Child Theme error

5 replies · Started by Clothilde on March 11, 2022

Viewing posts 1–6 of 6

Hi there !

I'm having some issues with my website, I am in recovery mode in Wordpress. Everything was working fine until this week, now I have this error showing up : Uncaught Error: Undefined constant "‘generate_typography_default_fonts’".
I use a Child Theme that was working fine until now.
Can somebody help please ?

Hi there,

do you have any snippets relating to the generate_typography_default_fonts function in your child theme ? If so can you remove that function as it will not work if you're using the latest Dynamic Typography

Hi, thank you for your reply.

Not sure this is what you are referring to, (sorry I'm a beginner), but in my functions.php, there is this code :
add_filter( ‘generate_typography_default_fonts’, function( $fonts ) {
$fonts[] = ‘Lora’;

return $fonts;
} );

I did it a while ago, so I don't really remember, but my intention was probably to use the "Lora" font I added.

If I remove this, how can I still use this font ?

I hope this makes sense

Amazing ! Thank you for your help David !

You're welcome

This archived topic is closed to new replies.