-
AuthorPosts
-
December 16, 2014 at 7:54 pm #369114
Hi there!
How can I see all fonts used by Enfold at one place so that I can choose new one from?
Thanks!
Orhan
December 16, 2014 at 8:31 pm #369124Merhabalar!
Unfortunately currently it is not possible to preview all available fonts. But you can look up and preview them on http://www.google.com/fonts
Best regards,
YigitDecember 16, 2014 at 8:33 pm #369129Merhaba Yigit!
Thanks for quick response. Is there any way to add new Google Font easily?
Thanks,
Orhan
December 16, 2014 at 9:12 pm #369155Hey!
Please see – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
YigitDecember 16, 2014 at 9:22 pm #369164Hey Orhan!
Try adding this at the very end of your theme / child theme functions.php file:
add_filter( 'avf_google_heading_font', 'avia_add_custom_font'); add_filter( 'avf_google_content_font', 'avia_add_custom_font'); function avia_add_custom_font($fonts) { $fonts['Source Sans'] = 'Source Sans Pro:300,400'; return $fonts; }
Cheers!
JosueDecember 17, 2014 at 12:31 pm #369424Hi Again,
I am confused. Can you please explain how I add Raleway font (Latin) especially?
Thanks!
OrhanDecember 17, 2014 at 5:04 pm #369546Hey!
Raleway font is already available. Can you post the link to your website please?
Best regards,
YigitDecember 17, 2014 at 5:12 pm #369561I meant Raleway Dots. I need to see a code which belongs to a new font :)
Thank you
December 17, 2014 at 5:22 pm #369567Hi!
Please add following code to Functions.php file
add_filter( 'avf_google_heading_font', 'avia_add_heading_font', 10); function avia_add_heading_font($fonts) { $fonts['Raleway Dots'] = 'Raleway Dots:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Raleway Dots'] = 'Raleway Dots:400'; return $fonts; }
Cheers!
YigitJanuary 3, 2015 at 5:44 pm #374507Selam Yigit,
I added this code but get an error message below.
Fatal error: Cannot redeclare avia_add_heading_font() (previously declared in /home/erkuto/insanayatirim.com/wp-content/themes/enfold-child/functions.php:9) in /home/erkuto/insanayatirim.com/wp-content/themes/enfold-child/functions.php on line 54
What’s wrong with it?
Thanks,
OrhanJanuary 4, 2015 at 5:02 am #374632Hi!
Thank you for using Enfold.
Looks like you added the code before on the child theme’s functions.php. Remove it.
Best regards,
IsmaelJanuary 4, 2015 at 2:11 pm #374684Hi,
I removed it but how could I add the code?
January 5, 2015 at 3:03 am #374888Hey!
Please change “avia_add_heading_font” to something like “avia_add_heading_font_second” as following
add_filter( 'avf_google_heading_font', 'avia_add_heading_font_second', 10); function avia_add_heading_font_second($fonts) { $fonts['Raleway Dots'] = 'Raleway Dots:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font_second'); function avia_add_content_font_second($fonts) { $fonts['Raleway Dots'] = 'Raleway Dots:400'; return $fonts; }
Function names should be unique
Best regards,
YigitJanuary 5, 2015 at 9:43 am #374974It worked! Teşekkürler :)
-
AuthorPosts
- The topic ‘Font Family’ is closed to new replies.