-
AuthorPosts
-
October 13, 2015 at 9:35 pm #518405
Hey guys,
I have another little question referred to:
https://kriesi.at/support/topic/google-fonts-without-child-theme/Is there an option to just add the italic version of the new added google font?
‘Cause when I change the font f.e. for the header/menu it appears in “regular”
and there is no option to switch to the italic version.
But I won’t need the regular version, so I thought maybe if I (or, to be honest: you)
add only the italic version, it appears cursive everywhere. :)October 15, 2015 at 3:53 am #519020Hi coeval,
What font are you looking to add? Is it available in italic?
Best regards,
RikardNovember 25, 2015 at 11:39 am #542281I would like to add this one: Arapey (Normal 400 Italic)
https://www.google.com/fonts/specimen/ArapeyNovember 25, 2015 at 11:47 am #542290Hi!
Please change this code – https://kriesi.at/support/topic/google-fonts-without-child-theme/#post-517832
to following onefunction avia_add_custom_font($fonts) { $fonts['Alef'] = 'Alef:400,700'; $fonts['Arapey'] = 'Arapey:400italic'; return $fonts; } add_filter( 'avf_google_heading_font', 'avia_add_custom_font'); add_filter( 'avf_google_content_font', 'avia_add_custom_font');
Best regards,
YigitNovember 25, 2015 at 2:08 pm #542424Hey Yigit,
for the content font it works well, the heading font is still “regular” if I use Arapey, but that’s no problem for me,
cause I only need the italic version for the content.But I have another question related to the google fonts:
I have another domain called mundzumund.org, where I use enfold.
I tried to add a google font called Euphoria Script for this website.
At first I added the code to wp-content/themes/enfold/functions.php without any success.
Then I downloaded all data from coeval and searched for the right functions.php.
I found out that I have to place the code in plugins/functions.php,
but my other domain mundzumund.org doesn’t have the functions.php in this folder,
so I duplicated the one from coeval and added it to the plugins folder from mundzumund,
again without any success.
Would you mind to help me out again in this case?
I think I’m to stupid to add google fonts on my own.November 25, 2015 at 3:27 pm #542462Hi!
I have added the code to your functions.php file. It was adding + between font name for some reason so i applied it to your elements custom CSS code in Quick CSS field. Please review your website now
Best regards,
YigitNovember 25, 2015 at 3:40 pm #542478Thx a lot. It works perfect now. :)
November 25, 2015 at 4:31 pm #542514 -
AuthorPosts
- The topic ‘add only the italic version of a google font’ is closed to new replies.