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,
Naima
Hey Naima!
Please see here, http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/.
Cheers!
Elliott
Hi 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;
}
Hi!
Did you paste it inside the child theme functions.php file?
Best regards,
Elliott
Hey!
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,
Ismael
Hi 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!
Naima
Hi!
Nunito is now available as a font in Website Styling > Lettertypen
Cheers!
Josue
Thanks Josue!
You are welcome, glad to help :)
Regards,
Josue