
-
AuthorPosts
-
August 31, 2014 at 3:39 pm #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örnSeptember 1, 2014 at 4:43 am #311642Hi 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!
IsmaelSeptember 1, 2014 at 8:45 am #311691Hi Ismael,
thanks. Where i have to put it in the functions.php?
Thanks in advance.
Kind regards
BjörnSeptember 1, 2014 at 1:17 pm #311790Hi Björn!
You can add the code to the bottom of functions.php file
Best regards,
YigitSeptember 1, 2014 at 1:59 pm #311810Thanks 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.
September 6, 2014 at 8:02 pm #314555Hi,
Can you please create us an administrator account? post it here as a private reply.
Regards,
JosueSeptember 7, 2014 at 6:47 pm #314748This reply has been marked as private.September 7, 2014 at 7:11 pm #314750Hi 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,
JosueSeptember 7, 2014 at 9:09 pm #314760Hi Josue,
thanks. You removed my settings and put it all new, correct?
Many thanks
BjörnSeptember 7, 2014 at 9:24 pm #314763Hey Björn!
Yes, i’ve put it on line 16 of functions.php.
Cheers!
Josue -
This reply was modified 10 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.