Recently I have been trying to add extra google fonts following the instructions in other threads.
My problem is that whenever I change something in the functions.php (whether through wp-admin > Appearance > Editor or via FTP) my whole site crashes into white screen. Both on admin login and on the actual site.
I want to add this font:
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Arapey’] = ‘Arapey:400,400italic’;
return $fonts;
}
I do it in functions.php below the code line:
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
As instructed in other threads.
What could be the problem here?
I’ve tried re-installing the theme by downloading the newest Enfold.zip, and replacing all folders within …/themes/enfold but that doesn’t do the trick either.
Hoping you can help me here.
Thanks.
Hey lauritschristensen,
First off, please install a child theme as you will lose your changes on updates otherwise: http://kriesi.at/documentation/enfold/downloads/. Then try to add the code to your child themes functions.php
Also please consider updating to the latest version of the theme which is 4.1.1: http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
Rikard