Tagged: enfold, google font
-
AuthorPosts
-
July 23, 2015 at 11:33 am #477628
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,
MoniqueJuly 23, 2015 at 5:01 pm #477832Hey Monique!
Try this.
$fonts['Rock Salt'] = 'Rock Salt:400';And make sure it’s in the child theme functions.php file.
Cheers!
Elliott-
This reply was modified 10 years, 3 months ago by
Elliott.
July 23, 2015 at 5:41 pm #477864Hi 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,
MoniqueJuly 23, 2015 at 7:43 pm #477918Hey!
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,
ElliottJuly 23, 2015 at 9:12 pm #477961Hi Elliott,
That line 23 did the trick :-)
Thanks a lot,
MoniqueJuly 24, 2015 at 3:10 pm #478190 -
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
- The topic ‘Additional Google Font won't show up’ is closed to new replies.
