New Landing How can we help? Themeforest Theme Support Flexform Google fonts in non latin encodings

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Flexform
  • #3287
    PeterOfcourse
    Member
    Post count: 4

    Although it is quite easy to add a Google Web Font to the theme, there is no option to load other encodings (e.g. Greek or Cyrillic). I am using Flexform to build a greek site, and greek characters appear in the fallback option (e.g. sans-serif, instead of Ubuntu, which supports greek).

    Is there anyway to add the parameters needed to load a Google Web Font in encodings other than latin?

    Google recommends using the following, when it comes to loading Greek and Latin (please, notice the “subset” value):

    <link href=’http://fonts.googleapis.com/css?family=Ubuntu:400,700&subset=latin,greek&#8217; rel=’stylesheet’ type=’text/css’>

    #3476
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    If you’d like to do that, I would recommend you add the code within that link to the custom css to the box within the Flexform Options panel. You can then add the following to apply it:

    body, h6, #sidebar .widget-heading h3, #header-search input, .header-items h3.phone-number, .related-wrap h4, #comments-list > h4, .item-heading h1, .sf-button, button, input[type="submit"], input[type="reset"], input[type="button"], input[type="email"], .wpb_accordion_section h3, #header-login input, #mobile-navigation > div, .search-form input {
    font-family: "Ubuntu", sans-serif;
    }
    h1, h2, h3, h4, h5, .heading-font, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .wpb_call_text, .impact-text, .testimonial-text, .header-advert, .wpb_call_text, .impact-text {
    font-family: "Ubuntu", sans-serif;
    }
    

    – Ed

    #3550
    PeterOfcourse
    Member
    Post count: 4

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register