[Resolved] Adobe font

Home Forums Support Adobe font

  • This topic has 6 replies, 4 voices, and was last updated 4 months ago by Leo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1021958
    Helen

    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”&gt;

    Is there a way I can add the fonts to the customiser so I can set all the global typography?

    Thanks,
    Helen

    #1021972
    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

    #1022003
    David
    Staff
    Customer Support

    Hi there,

    that looks correct 🙂
    Glad you got it resolved.

    #1300692
    katia

    Hi both, I’m trying to do the same thing but it seems not working: what could be the cause?
    thanks in advance

    #1300802
    Leo
    Staff
    Customer Support

    Did you make sure both steps were done?

    Where are you adding the code?

    #1301000
    katia

    Thank you Leo, I found the problem: I used the wrong quotes (‘ instead of ‘) in the snippet!

    #1301309
    Leo
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.