- This topic has 13 replies, 3 voices, and was last updated 5 years, 9 months ago by David.
-
AuthorPosts
-
May 31, 2018 at 8:58 am #588890Jordan
Would be great if I could select the IBM Plex Mono font from the dropdown menu.
If it’s a quickie to do…
Cheers!
May 31, 2018 at 9:03 am #588896LeoStaffCustomer SupportHi there,
This should help: https://docs.generatepress.com/article/customizing-the-google-font-list/#adding-your-google-font-to-the-list
June 1, 2018 at 7:22 am #589529JordanVery cool.
It does not say where to paste the code, though?
Cheers!
June 1, 2018 at 7:26 am #589536DavidStaffCustomer SupportHi Jordan, you can add the PHP snippets to a child theme function file or simpler still use the Code Snippets plugin – more info:
June 1, 2018 at 7:32 am #589542JordanAh, so it is quite technical!
I think the feature request remains for me then — to have a point and click access to all the fonts without installing more plugins or using child themes etc.
Dreamer!
Back to reality —
I have installed the Code Snippets plugin (hate adding more plugins but still..)
My next question is, does the code snippet need to run “everywhere,” “only in admin,” “front end” or “only once”?
Thanks for the help!
June 1, 2018 at 8:00 am #589595DavidStaffCustomer SupportFront end will be fine. Or you can run everywhere.
June 1, 2018 at 8:10 am #589599JordanHmm, OK I now have a bunch more fonts to choose from, but looks like IBM fonts are not included in the full list.
Argh!
June 1, 2018 at 8:41 am #589623DavidStaffCustomer SupportHi Jordan, IBM fonts are not a part of Google fonts. You can add them as per any custom font, this topic will help:
https://generatepress.com/forums/topic/using-font-squirrel-and-fontawesome-locally/
And the font is available on font squirrel
June 1, 2018 at 8:56 am #589631June 1, 2018 at 8:59 am #589635DavidStaffCustomer SupportHi Jordan, my bad, i didn’t check the site just the list. Are you ok to add the font manually? Tom wrote this guide how to:
June 1, 2018 at 9:02 am #589636JordanThanks David.
I haven’t the energy to be honest.
Maybe some other time!
Appreciate your help, especially the rapid responses (impressive support — big thumbs up.)
Cheers o/
June 1, 2018 at 9:05 am #589639DavidStaffCustomer SupportHi Jordan, sorry to cause a bit of a run around. When you have the energy let us know. Have a good day.
June 5, 2018 at 6:56 am #592288JordanOK, got this done finally.
Installed Code Snippets.
Here’s the code I used:
add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' ); function tu_add_google_fonts( $fonts ) { $fonts[ 'ibm_plex_mono' ] = array( 'name' => 'IBM Plex Mono', 'variants' => array( '400', '400i', '700', '700i' ), 'category' => 'monospace' ); return $fonts; }
(I ticked the box, “Only run in administration area” and that worked fine.)
After this, I could finally select the IBM Plex Mono font.
Cheers!
June 5, 2018 at 6:58 am #592292DavidStaffCustomer SupportGlad to hear you got this resolved!
-
AuthorPosts
- You must be logged in to reply to this topic.