-
AuthorPosts
-
September 28, 2016 at 7:18 am #692502
on former days of enfold i added my Custom Google Fonts as in : http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
if you goto Google and look what Font you like ( btw. they give on choosing one of them “Popular Pairings with Font” on left bottom)
You get the embed code f.e. from @import rule<style> @import 'https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i'; </style>
i don’t know if this was with old version of Google Fonts so but these little Plus Sign in between the Font name are not usefull for us.
Remove it in your code when adding it via child-theme functions.php
So code from @import rule above is than:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400i,700,700i'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,400i,700,700i'; return $fonts; }
it is important to get rid of that Plus Sign – otherwise the Font is seen in Options Dialog of Enfold but not on your Frontend !
I thought in former times i did it with plus – but i must see that now this does not work anymoreSeptember 28, 2016 at 7:38 am #692513my tip here for pajicu was definitly wrong – thats why i opend here for him a new thread. Sorry
October 1, 2016 at 12:22 am #694084Hi,
Can you post a link to a Page where this occur? i can’t reproduce the issue in any of my installations.
Best regards,
JosueOctober 3, 2016 at 12:32 pm #694542it is ok Josue thanks – in a different thread which is closed i did the fault to say that you see the code to insert from the @import rule : with the + signs in between – but with these signs between f.e.
Playfair+Display does not work.i remember that in former times it worked too with the + signs in between – but now it does not work.
October 9, 2016 at 6:45 am #696976Hi!
The code should work, with or without the plus sign.
http://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i
http://fonts.googleapis.com/css?family=Playfair%20Display:400,400i,700,700iBest regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.