Hello,
I am not sure this can be considered a feature request (it’s rather a bug report) so I post it here.
Even in its latest version, enfold does not fix basic Google Fonts issues when using another language. In our case (Greek) fonts simply does not appear. The workaround has been known to me for a long time, but it seems it has to be fixed sometime.
I just edit the following
includes/admin/register-admin-options.php
includes/admin/register-backend-google-fonts.php
and attach the following parameters to the fonts I want (eg for Open Sans)
‘Open Sans’=>’Open Sans:400,600&subset=latin,greek,greek-ext‘,
this approach causes minor issues when I use this method to add new fonts to Enfold. If I do so, they work as expected. I am also able to select them using Enfold config interface. But if I click save the settings revert back to Arial/default. In other words, the solution is to select fonts again every time I make a change in the configuration (even in other sections)
Thank you
Hey Aristidis!
There’s a filter you can use to add those parameters, try the following (child theme / theme functions.php):
function add_subset_func($fontlist) {
$fontlist .= "&subset=latin,latin-ext";
return $fontlist;
}
add_filter('avf_google_fontlist', 'add_subset_func');
Best regards,
Josue
Thank you Josue.
However issues still remain. I still do not understand why you don’t include the same list of Google fonts for both Heading and Body. And please let me know how can I add more fonts using child theme config (as in your first reply).
Hey!
Refer to:
http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
Josue