- This topic has 13 replies, 3 voices, and was last updated 2 years, 3 months ago by Elvin.
-
AuthorPosts
-
December 21, 2021 at 8:05 am #2055789fabiosilva
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=jostI 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 ChristmasDecember 21, 2021 at 8:15 am #2055812DavidStaffCustomer SupportHi there,
are you using the latest Customizer > Typography settings ie. the one with the Font Manager?
And Merry Christmas to you too π
December 21, 2021 at 8:26 am #2055825fabiosilvaHi, David
Yes. So… I’m not sure about your question. But, maybe this print helps:
https://i.ibb.co/QjDx13Q/print.jpgThank you
December 21, 2021 at 9:26 am #2055892DavidStaffCustomer SupportThats the older typography system…. hmmm that code should work.
How was that PHP Snippet added to the site?
December 21, 2021 at 9:32 am #2055904fabiosilvaThrough functions.php (using child theme)
December 21, 2021 at 10:16 am #2055946DavidStaffCustomer SupportMight 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.
December 21, 2021 at 11:34 am #2056004fabiosilvaThank you, David!
Works fine and this new Typography settings is PERFECT! π
December 22, 2021 at 4:24 am #2056556DavidStaffCustomer SupportGlad to be of help!
December 27, 2021 at 7:37 am #2060659fabiosilvaHi, 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)
The problem:
On Font-Weight, only 3 variations works. The rest, nothing happens. And italics don’t even appear.
Is there any configuration missing?
Thank you
December 27, 2021 at 9:38 am #2060924DavidStaffCustomer SupportCan you share a link to the site where i can see the issue?
December 27, 2021 at 9:48 am #2060936fabiosilvaHi, David
Yes! I add on private information.
Thank you.
December 27, 2021 at 7:40 pm #2061255ElvinStaffCustomer SupportHi 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.
December 28, 2021 at 3:47 am #2061533fabiosilvaHi, 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. π
December 28, 2021 at 5:14 pm #2062271ElvinStaffCustomer SupportGlad you got it sorted. Thanks for letting us know. No problem. π
-
AuthorPosts
- You must be logged in to reply to this topic.