Tagged: devin-docs, google fonts
Hi guys,
I read this: https://kriesi.at/support/topic/new-custom-font/
What if I want to add more than 1 font? What would the code be?
Any chance you guys will add a boatload of Google fonts so we don’t have to go thru this?
Thanks!
Tim
Hey timfl!
If you want to add more than one google font, the code should look like this:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Alef'] = 'Alef';
$fonts['Roboto'] = 'Roboto';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Alef'] = 'Alef';
$fonts['Roboto'] = 'Roboto';
return $fonts;
}
Regards,
Ismael