Tagged: enfold, google font
Hi there,
Please see development site for NeoNailS.
The client wants to use a Google Font for headings which is not listed in your theme options, that is Rock Salt. I have followed the instructions in your documentation and changed the code for Rock Salt. I have tried different options for the name & family of this font, but nothing works. It still doesn’t show up in the theme options… :-(
The code I have now added in the themes function.php is:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Rock Salt'] = 'Rock Salt:latin';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Rock Salt'] = 'Rock Salt:latin';
return $fonts;
}
Please advise what to do!
Thanks & regards,
Monique
Hey Monique!
Try this.
$fonts['Rock Salt'] = 'Rock Salt:400';
And make sure it’s in the child theme functions.php file.
Cheers!
Elliott
Hi Elliot,
Thanks for your reply!
I guess you mean:
$fonts['Rock Salt'] = 'Rock Salt:400';
Why do you say the “child theme functions.php”? In case I am not using a child theme I suppose I can add this code to the theme’s functions.php!?
Thanks & regards,
Monique
Hey!
Yeah that. :)
If I remember right there is a certain area in the parent functions.php file you have to add it. Around line 23 or something like that.
In the child theme it does not matter where you place it, http://kriesi.at/documentation/enfold/downloads/, just add it at the bottom of the file.
Regards,
Elliott
Hi Elliott,
That line 23 did the trick :-)
Thanks a lot,
Monique