Hi,
I would like to add the full Roboto font family to the theme. How do I do that?
There are about 10 different styles of thickness and weight.
Thanks for your help!
Gabe
Hi Gabe
Please add following code to Functions.php file in Appearance > Editor
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Roboto'] = 'Roboto:100italic,100,300italic,300,400,400italic,500,500italic,700,700italic,900,900italic';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Roboto'] = 'Roboto:100italic,100,300italic,300,400,400italic,500,500italic,700,700italic,900,900italic';
return $fonts;
}
Regards,
Yigit
Thanks Yigit.
Quick question – suppose I wanted to add a font that’s not a Google font. How would I do that?
Hey!
Please see – http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/
Cheers!
Yigit