Hello,
I want to use roboto font on my site but I can use it only as heading font. How can I use it for my whole site?
I have the last update installed (3.6.1) but also not the roboto font. But in the changelog I see: – added: new google fonts. But why not the font that google use by itself? https://material.google.com/style/typography.html
Thank you
Cheers
Hey Miikey,
Please refer to this: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/. You would only need to add the bottom code though:
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic';
$fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
return $fonts;
}
Just replace the PT Sans font with the font you want to add from Google Fonts.
Best regards,
Rikard
Hello,
This don’t work for my?
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘roboto’] = ‘roboto:400,700,400italic,700italic’;
$fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
return $fonts;
}