-
AuthorPosts
-
April 18, 2016 at 10:07 pm #616831
I was trying to get a thinner Lato weight and applied the one suggested in the Guides. Now I an unable to access my dashboard at all! Please help! Admin sign in is below!
April 18, 2016 at 10:08 pm #616833Also this was the error:
Fatal error: Cannot redeclare avia_add_heading_font() (previously declared in /home/content/05/6695205/html/wp-content/themes/enfold/functions.php:20) in /home/content/05/6695205/html/wp-content/themes/enfold/functions.php on line 543
April 18, 2016 at 10:17 pm #616836Hey!
It seems like you have declared “avia_add_heading_font” function twice in your functions.php file. Please edit the second code you added and change function name to “avia_add_heading_font_new”. If you would like us to fix it for you, please post FTP credentials here privately.
Regards,
YigitJuly 4, 2016 at 3:34 pm #656620Hey
Same Problem on our site. I´ve already added aditional font and now our customer needs another font. So I put this into child theme function:add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font_new’);
function avia_add_heading_font($fonts)
{
$fonts[‘Amatic SC’] = ‘Amatic SC:400’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font_new’);
function avia_add_content_font($fonts)
{
$fonts[‘Amatic SC’] = ‘Amatic SC:400’;
return $fonts;
}and I´m getting this error:
Fatal error: Cannot redeclare avia_add_heading_font() (previously declared inI´m looking forward to your help – any idea?
greets StankoJuly 4, 2016 at 3:57 pm #656635Hey!
Please go to wp-content/themes/enfold-child/functions.php file via FTP and change the code you added the last to following
add_filter( 'avf_google_heading_font', 'avia_add_heading_font_new_ones'); function avia_add_heading_font_new_ones($fonts) { $fonts['Amatic SC'] = 'Amatic SC:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font_new_ones'); function avia_add_content_font_new_ones($fonts) { $fonts['Amatic SC'] = 'Amatic SC:400'; return $fonts; }
Regards,
YigitJuly 5, 2016 at 8:55 am #656892Yigit – thank you so much
that worked perfectly – you´re the best
cheers
StankoJuly 5, 2016 at 3:08 pm #657079 -
AuthorPosts
- The topic ‘SITE CRASHED!! PLEASE HELP!!!!!’ is closed to new replies.