Hi,
I used your guidance fron this post: https://kriesi.at/support/topic/using-custom-google-font/
and added a few google fonts latin-ext using functions php file.(child).
when, in “general styling / font” tab, I set my choice for “Defines the Font for your body text” in changes correctly,
BUT
then I set my choice for “Heading Font” both, Content fon and header pong change to default.
The same happens when I change font in “Advanced styling” “Main Menu Links”
Would you please help.
Kind regards
Tomasz
Hey tomek_z!
you did not implement the code in your Quick CSS as mentioned here.
If it is still not working please try to deactivate all plugins, to see if one is causing this issue. Also update WordPress and the theme to the newest version.
Best regards,
Andy
Hi Andy,
Not sure which part you mention: from makss or Ismael. I already had the code given by Ismael, Now I added @import url(http://fonts.googleapis.com/css?family=Exo&subset=latin,latin-ext); and it gets worse.
The font for all is a default now.
Hey!
Please use this code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Rajdhani'] = 'Rajdhani:400';
$fonts['Exo'] = 'Exo:100';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Google fonts']['Rajdhani'] = 'Rajdhani:400';
$fonts['Google fonts']['Exo'] = 'Exo:100';
return $fonts;
}
Remove browser cache then reselect the fonts.
Regards,
Ismael