-
AuthorPosts
-
May 17, 2015 at 10:12 am #445369
Hi,
I would like to know how I can get more options for fonts in Enfold. When I bought Enfold I assumed I could choose out of more than 500 Google fonts, but when I want to select fonts, there are only a handful…
I tried to solve it myself, but that did not work (see my previous post).
Could you please help?
I want to add at least two types: Oswald and PT Serif.
Thanks in advance for your fast reply.
Cheers,
NaimaMay 18, 2015 at 5:14 pm #445853Hey Naima!
Please see here, http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/.
Cheers!
ElliottMay 19, 2015 at 11:06 am #446328Hi Elliott,
I pasted this code in functions.php but nothing happens…
/*
* add option to edit elements via css class
*/
// add_theme_support(‘avia_template_builder_custom_css’);
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘PT Serif’] = ‘PT Serif:400,700,400italic,700italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘PT Serif’] = ‘PT Serif:400,700,400italic,700italic’;
return $fonts;
}May 20, 2015 at 4:42 pm #447254Hi!
Did you paste it inside the child theme functions.php file?
Best regards,
ElliottMay 20, 2015 at 7:45 pm #447392This reply has been marked as private.May 22, 2015 at 9:06 am #448245Hey!
I edited the functions.php file and I got an error. Everything is blank. I’m sorry but I must have missed something when I edited the file. Please override the functions.php file to fix the error.
Best regards,
IsmaelMay 22, 2015 at 10:23 am #448290Hi Ismael,
This is exactly what happened to me when I tried it :)
I overwritten the functions.php file so everything works again.
Do you have another solution? :)
thanks!
NaimaMay 22, 2015 at 5:13 pm #448477May 22, 2015 at 5:22 pm #448486This reply has been marked as private.May 22, 2015 at 8:07 pm #448585Hi!
Nunito is now available as a font in Website Styling > Lettertypen
Cheers!
JosueMay 22, 2015 at 9:01 pm #448618Thanks Josue!
May 22, 2015 at 9:05 pm #448623You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.
