Hello! I try use font thickness for body Open Sans font. In theme options I select Light thicknes for tag “p”. Then add this in Child function.php
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Open Sans'] = 'Open Sans:300,400,600';
return $fonts;
}
But in result not included thicknes 300 Result string -> <link rel=’stylesheet’ id=’avia-google-webfont’ href=’//fonts.googleapis.com/css?family=Tenor+Sans%7COpen+Sans:400,600’ type=’text/css’ media=’all’/>
How to add thickness 300?
Hey EagleMax,
In the code above you have Open Sans and in the link Tenor Sans, so maybe in the function, it should also be Tenor Sans?
Best regards,
Victoria
Hi, Victoria,
I want add thicknes 300 for Open Sans
Hi EagleMax,
Best regards,
Victoria
In first message I wrote this ;)
See – http://img.webmister.pro/2017-12-19_182541.png
Hi EagleMax,
Yes, but your content p is set to have Arial font in another tab, so don’t expect to have Opens Sans there.
Best regards,
Victoria
Thanks for help!