Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #725881

    Hallo,

    ich habe eben versucht über die funktion.php einen Google Font (Playfair Display) dazu zu fügen. Nach Anleitung unter diesem Link:http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ . Leider hat es nicht so geklappt und die Seite läßt sich nicht mehr aufrufen. Ich erhalte diese Fehlermeldung:

    Fatal error: Cannot redeclare avia_add_heading_font() (previously declared in /www/htdocs/w01449b6/kosmetik-hautzeit.de/wp-content/themes/enfold/functions.php:32) in /www/htdocs/w01449b6/kosmetik-hautzeit.de/wp-content/themes/enfold/functions.php on line 549

    Könnt Ihr mir da ganz schnell helfen? Es ist die Seite einer Kundin von mir….DANKE :)

    Lieber Gruß
    Steffi

    #725903

    Hallo!

    Please post FTP logins here privately here if you would like to fix it for you.
    If you would like to do it yourself, please go to – www/htdocs/w01449b6/kosmetik-hautzeit.de/wp-content/themes/enfold/functions.php and remove the code from the file. It seems like you have already added the code to your functions.php file

    Cheers!
    Yigit

    #725916

    Hi Yigit,
    thank for the quick reply! Sorry, but I didn’t have the FTP Login…..I´ll try to find out….
    And yes, I´ve added the original function.php from enfold, but nothing happened and I still have the same error….

    Can you try to do it for me in the WP Admin Area? That would be great! I´ve postet the Login data above.

    best regards

    Steffi

    • This reply was modified 7 years, 4 months ago by Hautzeit.
    #725920

    Hi Steffi,

    Unfortunately it is not possible to correct this issue from WordPress backend, that is why we need FTP logins. Issue should be fixed via FTP :)

    Best regards,
    Yigit

    #726034

    Hi Yigit,
    the Site is running. But I´m still unsure where I can add the Font” Playfair Display” without mess up the Site again…could you help me here?

    Best regards

    Steffi

    #726039

    Hey!

    I added following code to Functions.php file in Appearance > Editor

    add_filter( 'avf_google_heading_font', 'avia_new_add_heading_font');
    function avia_new_add_heading_font($fonts)
    {
    $fonts['Playfair Display'] = 'Playfair Display:400,700,900';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_new_add_content_font');
    function avia_new_add_content_font($fonts)
    {
    
    $fonts['Playfair Display'] = 'Playfair Display:400,700,900';
    return $fonts;
    }

    Please review your website now

    Best regards,
    Yigit

    #726308

    Thank you Yigit it works great!

    Cheers

    Steffi

    #726315

    Hi!

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘German Support Needed’ is closed to new replies.