Support for Envato Buyers Forums OldCar How to include cyrillic subset to Google Fonts

Viewing 11 reply threads
  • Author
    Posts
    • #2779
      undalkeor
      Member

      Hello!

      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!

    • #2784

      I have searched on google and it seems Oswald font doesn’t support cyrillic subsets.

    • #2785
      undalkeor
      Member

      When 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.

    • #2793

      Sorry 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..

    • #2798
      undalkeor
      Member

      Yes, 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.

    • #2800
      Musama
      Member

      1. 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

    • #2804
      undalkeor
      Member

      Wow! So simple! Thanks! Now this font works everywhere except the main menu.

    • #2809
      Musama
      Member

      add this code

      .primary-navigation > ul > li > ul > li a {
      font-family: 'PT Sans Narrow', Tahoma, Geneva, sans-serif!important;
      }
    • #2812
      undalkeor
      Member

      Unfortunately this has no effect.

    • #2819

      Try 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;
      }
    • #2822
      undalkeor
      Member

      Yes, now it works! Thank you!

    • #2823
      Musama
      Member

      Good ๐Ÿ™‚

Viewing 11 reply threads
  • You must be logged in to reply to this topic.