- This topic has 13 replies, 3 voices, and was last updated 7 years, 10 months ago by
David.
-
AuthorPosts
-
May 31, 2018 at 8:58 am #588890
Jordan
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 #588896Leo
StaffCustomer 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 #589529Jordan
Very cool.
It does not say where to paste the code, though?
Cheers!
June 1, 2018 at 7:26 am #589536David
StaffCustomer 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 #589542Jordan
Ah, 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 #589595David
StaffCustomer SupportFront end will be fine. Or you can run everywhere.
June 1, 2018 at 8:10 am #589599Jordan
Hmm, 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 #589623David
StaffCustomer 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 #589635David
StaffCustomer 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 #589636Jordan
Thanks 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 #589639David
StaffCustomer 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 #592288Jordan
OK, 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 #592292David
StaffCustomer SupportGlad to hear you got this resolved!
-
AuthorPosts
- You must be logged in to reply to this topic.