Archived topic
Adobe font
6 replies · Started by Helen on September 29, 2019
Hi
I have created a web project on Adobe fonts and added the following code as a hook to wp_head
<link rel="stylesheet" href="https://use.typekit.net/bfq8kok.css">
Is there a way I can add the fonts to the customiser so I can set all the global typography?
Thanks,
Helen
I think I've done it. I installed the plugin code snippet, then used it to add the following;
add_filter( 'generate_typography_default_fonts', 'tu_add_typekit_fonts' );
function tu_add_typekit_fonts( $fonts ) {
$fonts[] = 'sofia-pro';
return $fonts;
}
and the font's now listed in the customizer and is being applied to the site.
Thanks,
Helen
Hi there,
that looks correct :)
Glad you got it resolved.
Hi both, I'm trying to do the same thing but it seems not working: what could be the cause?
thanks in advance
Did you make sure both steps were done?
Where are you adding the code?
Thank you Leo, I found the problem: I used the wrong quotes (‘ instead of ') in the snippet!
Glad to hear :)