Hi boys,
Ive been using Enfold for a long time now but i cant figure out soming:
Im trying to load a google font what go’s well, but the weight isnt working.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Source Sans Pro'] = 'Source Sans Pro';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Source Sans Pro'] = 'Source Sans Pro';
return $fonts;
}
Is in my funtions.php and i sellected is at the generals styling -> Fonts
And in advanced styling ive chosen font weigt 200 for extra light en 300 ed. but 200 is not working.
Site: myntz.lookmedia.nl
The words: We helpen organisaties groeien door hun klanten centraal te stellen en vanuit daar een strategie te ontwikkelen die zich vertaald in design en content. = H6 and H6 has 200 as atribute but is not working. Check out https://fonts.google.com/specimen/Source+Sans+Pro?selection.family=Source+Sans+Pro:200 and you will see its thiner
tnx!
Hey Yannick,
Please do not add custom fonts by modifying functions.php file but instead, please refer to this post – https://kriesi.at/documentation/enfold/typography/#how-to-upload-custom-fonts. Also, please make sure to choose all needed font weights in Customize tab before downloading your font family :)
Best regards,
Yigit
your my hero :) tnx!
Hi yannickokken,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria