Tagged: font weight, roboto
I’m migrating a website to WordPress and therefore I need more font-weight variants of Roboto.
In Enfold the only font-weights are 100,400 and 700.
How do I add those other font-weight to the theme?
Hey tijshensen,
Please add this code to the child theme functions.php
add_filter( 'avf_google_heading_font', 'avia_add_content_font');
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Roboto'] = 'Roboto:100,400,700';
return $fonts;
}
Best regards,
Peter
Thanks, this works like a charm!