[Resolved] Menu fonts add

Home Forums Support [Resolved] Menu fonts add

Home Forums Support Menu fonts add

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #519365
    Michael

    Hi
    Hi.

    How do I add adobe type kit to go.

    #519871
    Tom
    Lead Developer
    Lead Developer
    #520187
    Michael

    Hi Tom

    Thank you for your response,
    I’ll try your instructions and give you and update very soon.

    #520591
    Michael

    Hi Tom

    I’ve tried your instructions but it didn’t work for me.

    I’ve sent a picture of the adobe kit with the embed code and typekit iD.
    How do I insert it to GP, so I can use the font for my main navigation?

    Please help! please kindly provide step by step.

    #520874
    Tom
    Lead Developer
    Lead Developer

    Don’t think we received a picture.

    The steps I linked to are the step by step instructions for Typekit. Is there a specific step you got stuck on?

    #520876
    Michael

    I’ll try send a link to the image on tag again and also via email.

    the steps you indicated is a little different.
    As I tried to replicated, I couldn’t see the new fonts being added.

    #521285
    Tom
    Lead Developer
    Lead Developer

    Ah, so the code they’re providing should be added in the wp_head hook in GP Hooks.

    Then you should be able to use the font family name that they provide in your CSS.

    #521294
    Michael

    So your saying, just paste the embed code to hooks and I could use the fonts?

    #521792
    Tom
    Lead Developer
    Lead Developer

    Looks like it – they must have simplified things.

    I’m not sure what the font is called from your screenshot, but you would still need to add the name of the font in the Customizer filter to set it in the options. Otherwise you’ll need to use CSS.

    #522039
    Michael

    I’m using liberation-san font.

    How would I add this to GP fonts?

    #522130
    Tom
    Lead Developer
    Lead Developer

    Like this:

    add_filter( 'generate_typography_default_fonts', 'tu_add_typekit_fonts' );
    function tu_add_typekit_fonts( $fonts ) {
        $fonts[] = 'liberation-san';
        return $fonts;
    }
    #522146
    Michael

    Where should I paste the code?

    Into
    Simple css or snipets or hooks?

    #522442
    Leo
    Staff
    Customer Support

    Code snippets 🙂

    #522633
    Michael

    Ok, I’ll try it.hopefully it works.

    #522936
    Michael

    Hi Leo

    The code Tom gave work for Code snippets.

    When I use the same code and entered vera-san, replacing liberation-san, it didn’t allow me. why is that?

    add_filter( ‘generate_typography_default_fonts’, ‘tu_add_typekit_fonts’ );
    function tu_add_typekit_fonts( $fonts ) {
    $fonts[] = ‘liberation-san’;
    return $fonts;
    }

Viewing 15 posts - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.