Tagged: google fonts
Hi all, I’m trying to add two extra fonts following the functions option you have but I don’t see the fonts in the heading or body dropdown menus.
Here’s the code I added in functions.php:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Rufina’] = ‘Rufina:400,700’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Source Sans Pro’] = ‘Source Sans Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic’;
return $fonts;
}
Let me know if I have to add extra code in order to get these fonts.
Hi Jorge!
can you please paste the code to pastebin and show it to use, or use the code tags of the forum?
The way it is pasted, the ” are not proper defined, so yes it might not be working as should.
Cheers!
Basilis
Hi Basilis, here’s the link: