-
AuthorPosts
-
November 2, 2015 at 4:39 pm #528600
Good Afternoon,
Kindly help me with the code if i want to install google fair “Playfair Display” into my fonts
Thank you
- This topic was modified 9 years, 1 month ago by kimogroup.
November 3, 2015 at 3:38 am #528952Hey kimogroup!
Thank you for using Enfold.
Please follow the instructions here: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Regards,
IsmaelNovember 3, 2015 at 1:08 pm #529180Good Afternoon
The Font doesnot workGoogle font: Playfair DIsplay
- This reply was modified 9 years, 1 month ago by kimogroup.
November 4, 2015 at 1:43 pm #529997Hi!
try this code without the “+” instead:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; return $fonts; }
Cheers!
AndyNovember 4, 2015 at 2:11 pm #530011Thanks Andy,
I have add the font but it does not show up in any of the font drop down to select.
Thank you
November 4, 2015 at 2:22 pm #530020Hi!
Please edit functions.php, find this code on line 16:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below this add this new code instead:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400italic,700'; return $fonts; }
Hope this will work for you now.
Best regards,
AndyNovember 4, 2015 at 2:59 pm #530041the code on line 16 has the same thing i have to replace with
November 4, 2015 at 3:03 pm #530046Hey!
not sure what you mean. Did you add the new code below line 16? does it work for you?
Best regards,
AndyNovember 4, 2015 at 3:42 pm #530089thank you
November 4, 2015 at 3:46 pm #530095Hey!
you are welcome and glad it is working for you.
Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
AndyNovember 4, 2015 at 3:47 pm #530097I have created categories as a menu , i want to have it with a different color buttons,
Please help with it
and image has been attached
Thank you
November 4, 2015 at 3:49 pm #530102Hi!
as I said: open a new ticket for a new question. Thank you.
Best regards,
Andy -
AuthorPosts
- The topic ‘Google Font’ is closed to new replies.