-
AuthorPosts
-
May 18, 2015 at 11:13 am #445577
Hello,
how can I import the type “Source Sans Pro Normal 400 Italic” in my Child-Theme?Thanks for your help
May 18, 2015 at 1:50 pm #445627Hi paaploo;
You can find many the information that you are looking for, and further : http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/May 19, 2015 at 10:16 am #446290May 19, 2015 at 10:45 am #446314I can load the font family, but not the Italic Style
`add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘PT Sans’] = ‘PT Sans:700italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘PT Sans’] = ‘PT Sans:700italic’;
return $fonts;
}May 19, 2015 at 4:07 pm #446499Hey!
Do you mind creating a temporay admin login and posting it here privately?
Cheers!
YigitMay 19, 2015 at 4:17 pm #446511This reply has been marked as private.May 21, 2015 at 5:34 pm #447861Hi!
I am really sorry, I pasted a wrong code into your child’s functions.php and now it does not load anymore. Please post FTP login as private reply here, so we can change it back as soon as possible. You could do it by yourself as well, when you open your child’s functions.php via FTP and replace my mess with your old code from above or even better use this one to implement “Source Sans Pro Normal 400 Italic”:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:400italic'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Source Sans Pro'] = 'Source Sans Pro:400italic'; return $fonts; }
I am really sorry! and I hope the new code will help you.
Regards,
AndyMay 22, 2015 at 11:45 am #448314This reply has been marked as private.May 22, 2015 at 4:26 pm #448430Hi!
I fixed functions.php file. Which element would you like to make in italic? Please point it out, so we can provide you custom CSS code :)
Cheers!
YigitMay 22, 2015 at 4:32 pm #448438:-)
it will be a Subhead, but we haven’t choose the correct font size at that moment
May 22, 2015 at 4:35 pm #448441Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab :)
.av-subheading { font-style: italic !important; }
Cheers!
YigitMay 22, 2015 at 4:41 pm #448452tank you :-)
May 22, 2015 at 4:45 pm #448456 -
AuthorPosts
- The topic ‘Use special google web font’ is closed to new replies.