Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #616833

    Also 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

    #616836

    Hey!

    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,
    Yigit

    #656620

    Hey
    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 in

    I´m looking forward to your help – any idea?
    greets Stanko

    #656635

    Hey!

    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,
    Yigit

    #656892

    Yigit – thank you so much
    that worked perfectly – you´re the best
    cheers
    Stanko

    #657079

    Hi,

    You are welcome! Glad we could help :)
    Let us know if you have any other questions or issues!

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘SITE CRASHED!! PLEASE HELP!!!!!’ is closed to new replies.