-
AuthorPosts
-
July 19, 2016 at 4:14 pm #662605
I’m looking at the sample code in http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
and struggling to see where in, for example, https://fonts.google.com/specimen/Reem+Kufi I can find the list of font weights I need to add in:
$fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic‘;
Ian
July 21, 2016 at 5:10 pm #663472Hey Ian,
Thanks for getting in touch with us!
That’s because the Google font you are trying to add only has one font weight.
Best regards,
JordanJuly 21, 2016 at 6:20 pm #663513Hi Jordan
Aye, I understand that. But the line
$fonts[‘Reem+Kufi’] = ‘Reem+Kufi’;
doesn’t produce any additional entries and I can’t find any documentation on the format required, nor where to pick up that information in the fonts pages.
July 21, 2016 at 6:37 pm #663520Hi!
Please use the code as following
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Reem Kufi'] = 'Reem Kufi:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Reem Kufi'] = 'Reem Kufi:400'; return $fonts; }If that still does not work, please create a temporary admin login and post it here privately so we can look into it.
Best regards,
YigitJuly 21, 2016 at 7:02 pm #663544$fonts[‘Reem Kufi’] = ‘Reem Kufi:400’;
works.
Looks like I
1. go to the customize page to pick up the numeric weight to use, and
2. Drop the “+” sign.Is that the general rule?
Many thanks.
Ian
July 21, 2016 at 7:05 pm #663545 -
AuthorPosts
- You must be logged in to reply to this topic.
