[Resolved] Google fonts

Home Forums Support [Resolved] Google fonts

Home Forums Support Google fonts

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by Tom.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3161
    PawelL

    Hello,
    where can i faind this code?
    <link rel="stylesheet" id="generate-fonts" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,regular,italic,500,500italic,700,700italic,900,900italic" />

    I must add there: &subset=latin-ext

    Thenks for help

    #3241
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’ll need to look into this and add an option to add subsets for each font.

    In the mean-time you have two options:

    1. Use the Hooks addon, and add your own <link rel.. provided by Google.
    2. Use the function below by installing a child theme and adding the below PHP to the functions.php file.

    https://gist.github.com/proframework/2e0553f0518f3cc2f3cc

    Let me know if you have any questions,
    Tom

    #3242
    Tom
    Lead Developer
    Lead Developer

    Actually, the easiest option would be to add the following to your CSS:

    @import url(http://fonts.googleapis.com/css?family=Roboto&subset=latin,latin-ext);

    Tom

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.