-
AuthorPosts
-
August 3, 2014 at 8:14 pm #299404
How do I add additional Google Fonts to the font selection on Enfold for the Defines the Font for your body text area?
Thanks.
I tried this in functions.php but it didn’t work:
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Muli’] = ‘Muli’;
return $fonts;
}- This topic was modified 10 years, 4 months ago by Micheal0424.
August 3, 2014 at 8:57 pm #299412Hey Micheal!
Are you using a child theme? if you are not, use this plugin to insert this kind of functions.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Muli'] = ‘Muli’; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Muli'] = ‘Muli’; return $fonts; }
Once you done that you should be able to see the new font in the Theme Options.
Best regards,
JosueAugust 4, 2014 at 12:14 am #299465That worked perfectly, and that plugin is great!!
Thanks a lot!!
August 4, 2014 at 12:53 am #299466You are welcome, always glad to help :)
Regards,
JosueAugust 12, 2014 at 10:37 am #303062Hello,
I would like to add a new content font in “enfold/general styling/defines the font for the body text. I have created a quick CSS as you mentioned in this spot:
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Roboto’] = ‘Roboto’;
return $fonts;
}Nothing happens in the drop down list “defines the font for the body text”. Could you please help me?
CarineAugust 12, 2014 at 10:41 am #303070Hi Carine!
You should put that code in the Theme functions.php, not Quick CSS.
Cheers!
JosueAugust 13, 2014 at 2:49 pm #303848Thanks, Josue
Where can I find functions.php? I don’t see anything in WP admin.
Thx
CarineAugust 13, 2014 at 2:50 pm #303849Hey Carine!
Please go to Appearance > Editor and find Functions.php file on the right
Cheers!
YigitAugust 13, 2014 at 4:27 pm #303912Thx. Strange, I don’t have this option.
My WP is hosted under one.com. I will ask them. But you know maybe the reason ;-)
CarineAugust 13, 2014 at 4:56 pm #303928Hey!
You can try re-updating WordPress and check if that helps. You can also connect via FTP and edit functions.php file manually. You can find it inside wp-content/themes/enfold folder
Regards,
YigitAugust 13, 2014 at 5:22 pm #303940August 13, 2014 at 5:28 pm #303942August 13, 2014 at 5:34 pm #303943No problem, hopefully it works.
Best of luck!!
-
AuthorPosts
- The topic ‘Adding Additional Google Fonts?’ is closed to new replies.