Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #311558

    Hallo,

    ich brauche Hilfe. Ich möchte bei den Heading- und Body Fonts in General Styling mehr Google Fonts laden (z.B. Yanone Kaffeesatz, Oswald). Hier steht immer einfügen in functions.php. Wie und wo muss ich das dort einfügen. Könnt Ihr mir den ein Beispiel anhand dieser beiden Fonts darstellen.

    Meine nächste Frage wäre, ob ich diese Fonts dann auch in dem Layerslider benutzen kann, oder ob diese noch einmal separat geladen werden müssen.

    Danke im Voraus.

    Gruß
    Björn

    #311642

    Hi Beggers!

    Thank you for using Enfold.

    You can use this on functions.php in order to add the google fonts:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Yanone Kaffeesatz'] = 'Yanone Kaffeesatz:400,200,300,700';
    $fonts['Oswald'] = 'YOswald:400,300,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Yanone Kaffeesatz'] = 'Yanone Kaffeesatz:400,200,300,700';
    $fonts['Oswald'] = 'Oswald:400,300,700';
    return $fonts;
    }

    If you want to use it on the layer slider, go to the plugin’s panel then look for the Load Google Fonts box. Search for the google font then add it.

    Cheers!
    Ismael

    #311691

    Hi Ismael,

    thanks. Where i have to put it in the functions.php?

    Thanks in advance.

    Kind regards
    Björn

    #311790

    Hi Björn!

    You can add the code to the bottom of functions.php file

    Best regards,
    Yigit

    #311810

    Thanks Yigit. I put it at the bottom but it doesn’t work. I can’t choose one of these languages at the dropdown in general styling.

    kind regards
    Björn

    • This reply was modified 10 years, 10 months ago by Beggers.
    #314555

    Hi,

    Can you please create us an administrator account? post it here as a private reply.

    Regards,
    Josue

    #314748
    This reply has been marked as private.
    #314750

    Hi Björn!

    Check it now, i added the after this line in functions.php and it worked:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Best regards,
    Josue

    #314760

    Hi Josue,

    thanks. You removed my settings and put it all new, correct?

    Many thanks
    Björn

    #314763

    Hey Björn!

    Yes, i’ve put it on line 16 of functions.php.

    Cheers!
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.