- This topic has 13 replies, 6 voices, and was last updated 3 years, 1 month ago by David.
June 22, 2016 at 3:47 pm #203922Mike
I’ve been testing new Google fonts lately and noticed some are missing from the list like Roboto Light. Can the list be updated and perhaps have a search function to facilitate finding fonts in the dropdown?June 23, 2016 at 12:35 am #203976TomLead DeveloperLead Developer
Roboto is in the list – then you can set the font weight to something low to get the light version.
As for searching, once the dropdown is open, if you start typing the font name it should jump to it 🙂June 23, 2016 at 4:39 am #204022Mike
Thanks Tom, it does jump but only based on the first letter. So if I start typing Droid, it goes to the D fonts and then to the R fonts.June 23, 2016 at 8:42 am #204062TomLead DeveloperLead DeveloperJune 30, 2016 at 6:08 am #205616Erik Bell
I have noticed some fonts are not included in the drop-down list, such as Heebo, Prompt, Suez One, and probably many others. I understand it might not be useful or efficient to list ALL the available Google Fonts – how can I use one of the fonts that is not listed?June 30, 2016 at 8:32 am #205646TomLead DeveloperLead Developer
It’s probably time to update the list in GP.
You can always set all of the Typography options in the Customizer to “inherit”, then include the code Google fonts gives you in the wp_head hook.
Then you just need to add the CSS they provide and you’re good to go.
Let me know if you need more info 🙂September 28, 2017 at 8:44 am #393605sr cola
I try to find the place in the code that controls the google fonts available in the elementor font interface, I guess is this:
In line: 1155
$content = json_decode([…])
I add another json element to the font list, especifying the font that i need. Then i save the PHP file an rerun the config interface again but nothing happens. I guess i am missing something. Please what am i doing wrong? I want to make a quick fix while any update is available.
Thanks for your helpSeptember 28, 2017 at 10:03 am #393663TomLead DeveloperLead Developer
No need to edit core files. This should help: https://docs.generatepress.com/article/customizing-the-google-font-list/September 28, 2017 at 11:00 am #393691sr cola
Thanks Tom, wonderful, you saved me.
Great theme, great resourcesSeptember 28, 2017 at 11:11 am #393693TomLead DeveloperLead DeveloperOctober 17, 2018 at 3:36 am #702970Cat
Hi Tom, just a question on this.
I have added a custom font before that wasn’t on the list and it worked perfectly.
Now I wanted to add another (second) new font but am not sure how to add this onto the existing code in the functions file (I’m guessing I need to extend the array but I am not sure the syntax.
Can you advise? Thanks
CatherineOctober 17, 2018 at 7:12 am #703118DavidStaffCustomer Support
Tom shows the filter syntax here:October 17, 2018 at 8:42 am #703361Cat
Thank you David! That’s perfect.October 17, 2018 at 8:43 am #703364
- You must be logged in to reply to this topic.