[Resolved] Load Google Font (Jost)

Home Forums Support [Resolved] Load Google Font (Jost)

Home Forums Support Load Google Font (Jost)

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2055789
    fabiosilva

    Hi,
    I read this documentation:
    https://docs.generatepress.com/article/customizing-the-google-font-list/

    To load a “Jost” font (listed on Google Gonts)
    https://fonts.google.com/specimen/Jost?query=jost

    I try use this code to load all fonts:

    add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
    function tu_add_google_fonts( $fonts ) {
    $fonts[ 'jost' ] = array(
    'name' => 'Jost',
    'variants' => array( '100', '100i', '200', '200i', '300', '200i', '400', '400i', '500', '500i', '600' , '600i', '700', '700i', '800', '800i', '900', '900i'),
    'category' => 'serif'
    );
    
    return $fonts;
    }
    

    But on GP Theme Customizer, not work fine. I’m doing something wrong?
    Thank you for your help and Merry Christmas

    #2055812
    David
    Staff
    Customer Support

    Hi there,

    are you using the latest Customizer > Typography settings ie. the one with the Font Manager?

    And Merry Christmas to you too πŸ™‚

    #2055825
    fabiosilva

    Hi, David

    Yes. So… I’m not sure about your question. But, maybe this print helps:
    https://i.ibb.co/QjDx13Q/print.jpg

    Thank you

    #2055892
    David
    Staff
    Customer Support

    Thats the older typography system…. hmmm that code should work.

    How was that PHP Snippet added to the site?

    #2055904
    fabiosilva

    Through functions.php (using child theme)

    #2055946
    David
    Staff
    Customer Support

    Might be easier to:

    1. remove that snippet.2
    2. switch to the new Typography settings which you can enable in Customizer > General.

    Jost is inlcuded in the new system.

    #2056004
    fabiosilva

    Thank you, David!

    Works fine and this new Typography settings is PERFECT! πŸ™‚

    #2056556
    David
    Staff
    Customer Support

    Glad to be of help!

    #2060659
    fabiosilva

    Hi, David
    I thought the problem was solved, but no. πŸ™

    Font Maneger Works fine. I’ve selected Jost Font, and variants all loaded automatically (100, 200, 300, regular, 500, 600, 700, 800, 900, 100italic, 200italic, 300italic, italic, 500italic, 600italic, 700italic, 800italic, 900italic)
    Print Screen 1

    The problem:
    On Font-Weight, only 3 variations works. The rest, nothing happens. And italics don’t even appear.
    print screen 2

    Is there any configuration missing?

    Thank you

    #2060924
    David
    Staff
    Customer Support

    Can you share a link to the site where i can see the issue?

    #2060936
    fabiosilva

    Hi, David

    Yes! I add on private information.

    Thank you.

    #2061255
    Elvin
    Staff
    Customer Support

    Hi there,

    I’m not sure I see the issue.

    I’ve checked the assets that load on the site and I see that Jost loads properly on it – https://share.getcloudapp.com/yAukjW2A

    As you can see in this comparison, it looks correct – https://share.getcloudapp.com/rRuNPvl9

    I’ve also checked the variants and they’re being added properly.

    As for verifying if the customizer settings are correct, I was unable to because the credentials provided don’t work. Can you check it and confirm if it’s correct? Let us know.

    #2061533
    fabiosilva

    Hi, Elvin

    I was having a problem with the customizer. But I cleared cookies and now it’s working.

    Thank you very much for your help. πŸ™‚

    #2062271
    Elvin
    Staff
    Customer Support

    Glad you got it sorted. Thanks for letting us know. No problem. πŸ˜€

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