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 ?
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
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.