- This topic has 7 replies, 5 voices, and was last updated 2 years, 3 months ago by Elvin.
-
AuthorPosts
-
October 28, 2021 at 6:04 pm #1981507Marco
Hello
I’m using the latest version of GeneratePress and GeneratePress Premium with the new Typography System – what is the proper way to add an Adobe Font to the theme.thank you in advance for your input.
October 28, 2021 at 6:25 pm #1981529ElvinStaffCustomer SupportHi Marco,
I assume you’re pertaining to Adobe typekit?
If so, Adobe typekit provides a
<link>
tag for the font’s importation stylesheet when you create a web project.It’ll provide something like this
<link rel="stylesheet" href="https://use.typekit.net/xxxxxxx.css">
.You can place this code on a Hook element and hook it to your
wp_head
with a display rule location of “Entire site”.Once you’ve hooked it in, you can add it on the customizer option using this filter –
add_filter( 'generate_typography_default_fonts', function( $fonts ) { $fonts[] = 'Open Sans'; return $fonts; } );
Change
Open Sans
to thefont-family:
property value of your imported font based on its web project value. https://share.getcloudapp.com/6quvPY5XDecember 2, 2021 at 8:53 am #2036006PieterHi!
Using this option and also from this topic: https://generatepress.com/forums/topic/adobe-fonts/
But nothing helps to get the font in the customizer.Tried with child-theme, without child-theme and whit snippets plugin.
Could you have a look? Really need the font omnes-pro.Site is https://tails.poiterdesign.eu/
Thank you in advance!
Gr. Pieter
December 2, 2021 at 9:47 am #2036106DavidStaffCustomer SupportHi there,
if you’re using the new Typography then in the Font Manager,
1. add a new Font.
2. In the Font Family Name field simply type in the name of your Font.
3. Make sure the Google Font Toggle ( if displayed ) is not selected.December 2, 2021 at 11:00 am #2036213PieterHi David,
Thanks for your fast reply!
Really didn’t know that! Thought the font will show up in the dropdown. But now I see it!
Looking and testing the whole day for this!
Thanks again!
Gr. Pieter
December 2, 2021 at 11:01 am #2036221DavidStaffCustomer SupportWe need to update our docs to make this clearer.
Glad to be of help
January 9, 2022 at 12:24 pm #2074579VeeHello,
What prior steps are needed to make this ‘simply type it in’ method work? (ie Hook & Filter method described earlier in this thread, repeating for each font needed? or Mike Oliver’s tut? )It would be great to be able to add access to my whole Adobefont web project, rather than individual fonts, as for example in this plugin: https://wordpress.org/plugins/custom-typekit-fonts/#description , which doesn’t work with GP.
Is there such a method anyone can share?
ThanksJanuary 9, 2022 at 5:09 pm #2074751ElvinStaffCustomer SupportHi Vee,
What prior steps are needed to make this ‘simply type it in’ method work? (ie Hook & Filter method described earlier in this thread, repeating for each font needed? or Mike Oliver’s tut? )
You can either manually download a copy of the font and locally host it on your site,
Or copy the
<link>
stylesheet Adobe Typekit provides and add hook it onwp_head
.
https://helpx.adobe.com/fonts/using/add-fonts-website.html -
AuthorPosts
- You must be logged in to reply to this topic.