Tagged: google font
Hello,
I’d like to use the Google Font “Roboto Slab” as the paragraph text. How can I achieve this? It’s not in the predefined font options.
Hi samforan!
Please refer to Ismael’s post here – https://kriesi.at/support/topic/add-new-font/#post-234710
Cheers!
Yigit
Thanks, but when I follow the directions on that, it makes none of the Avia pages in the backend load – they just stay white. Doesn’t seem to work for me.
WP 3.9.1, Enfold 2.8.1
I would like to use “Roboto” as the Header’s, and “Roboto Slab” as the body.
Sorry no, it’s running on a local MAMP server.
Hi!
Thank you for the update.
Please edit functions.php, find this code on line 16:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Roboto'] = 'Roboto';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Roboto Slab'] = 'Roboto Slab';
return $fonts;
}
Best regards,
Ismael