Support for Envato Buyers › Forums › OldCar › How to include cyrillic subset to Google Fonts
- This topic has 11 replies, 3 voices, and was last updated 11 years, 3 months ago by
Musama.
-
AuthorPosts
-
-
November 1, 2013 at 6:55 pm #2779
undalkeor
MemberHello!
OldCar theme allows to use many Google Fonts. Some of them have the cyrillic subset. I have to use the font, which has latin and cyrillic subsets, but I can’t include the cyrillic subset. I tried to edit functions.php
wp_enqueue_style("Oswald", "http://fonts.googleapis.com/css?family=Oswald:400,700,300&subset=latin,latin-ext", false, "1.0", "all");
but the cyrillic subsets still not work.
Please advise how to resolve this!Thank you so much in advance!
-
November 2, 2013 at 3:22 pm #2784
FocuxTheme Support
KeymasterI have searched on google and it seems Oswald font doesn’t support cyrillic subsets.
-
November 2, 2013 at 6:56 pm #2785
undalkeor
MemberWhen I change this code to
wp_enqueue_style("PT Sans Narrow", "http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700&subset=latin,cyrillic", false, "1.0", "all");
and choose PT Sans Narrow in Custom Styles even latin subset stops working. -
November 3, 2013 at 7:40 pm #2793
FocuxTheme Support
KeymasterSorry that I don’t know much about the western font issue, because of the mother language, BTW, I’m a eastern.
I will ask the other friend.Also, are you sure the font is support the cyrillic subset? When I selected a font in google webfonts, I haven’t found the cyrillic subset option which I can check..
-
November 3, 2013 at 8:35 pm #2798
undalkeor
MemberYes, I tried only the fonts which have the cyrillic subset. I’m using the cyrillic subsets of such Google fonts as ‘PT Sans Narrow’ and ‘Cuprum’ on my other websites. I’m from Russia so the problem of cyrillic subsets is very actual for me ๐ I already had this problem with some other themes, but this is the first time I can’t resolve it myself.
-
November 3, 2013 at 9:04 pm #2800
Musama
Member1. Add the following CSS to โOldCar options > custom Code > CSS codes
h1,h2,h3,h4,h5,h6{ font-family: 'PT Sans Narrow', Tahoma, Geneva, sans-serif!important; }
2. Be sure to clear all the cache from your website
-
November 4, 2013 at 3:37 am #2804
undalkeor
MemberWow! So simple! Thanks! Now this font works everywhere except the main menu.
-
November 4, 2013 at 7:31 am #2809
Musama
Memberadd this code
.primary-navigation > ul > li > ul > li a { font-family: 'PT Sans Narrow', Tahoma, Geneva, sans-serif!important; }
-
November 4, 2013 at 5:20 pm #2812
undalkeor
MemberUnfortunately this has no effect.
-
November 4, 2013 at 8:43 pm #2819
FocuxTheme Support
KeymasterTry the following code again
.primary-navigation > ul > li > a, .primary-navigation > ul > li > ul > li a { font-family: 'PT Sans Narrow', Tahoma, Geneva, sans-serif!important; }
-
November 4, 2013 at 11:15 pm #2822
undalkeor
MemberYes, now it works! Thank you!
-
November 5, 2013 at 12:01 am #2823
Musama
MemberGood ๐
-
-
AuthorPosts
- You must be logged in to reply to this topic.