Tagged: google fonts
Hi,
I read two threads on the forum (Adding Google Fonts (plural)&Google fotns with Extended Latin subset) and added code to functions.php (:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Open Sans'] = 'Open+Sans&subset=latin,latin-ext';
$fonts['Ubuntu Condensed'] = 'Ubuntu+Condensed&subset=latin,latin-ext';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Open Sans'] = 'Open+Sans&subset=latin,latin-ext';
$fonts['Ubuntu Condensed'] = 'Ubuntu+Condensed&subset=latin,latin-ext';
return $fonts;
}
but it did not result any change. I checked on inspect and found that in enfold.css:1 that creates a line:
font-family: 'Ubuntu+Condensed&subset=latin,latin-ext', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
instead
font-family: 'Ubuntu Condensed', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
In <head> section Google Font link is correct `<!– google webfont font replacement –>
<link id=”google_webfont_1″ rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Ubuntu+Condensed&subset=latin,latin-ext” /><style type=’text/css’>`
How can I fix it?
Regards
Marek