• Hi,
    I am building a child theme to Storefront, and I have activated Embed Code. But Typekit fonts don’t load as I wrote styles for those fonts in css.
    Seems like the new Gutenberg .css loads after every other css in the theme – maybe that’s the trouble?

    Do you have any clue why Typekit fonts ain’t working?

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi,

    Can you send over the website URL (unless you have it on a local server) and the content you added in the Embed Code option ( and also let me know where it’s added, header or footer ).

    Thread Starter kilate.pro

    (@kilate)

    Hi!
    Unfortunately its local server.

    What I have added in the head, through Embeded Code:

    <link href=”//use.typekit.net/oag1xza.css” type=”text/css” rel=”stylesheet” />

    Thread Starter kilate.pro

    (@kilate)

    What I have noticed is that, in the matter of fonts, it is loading the parent theme’s css, not the child’s. In other aspects it is loading the child’s css.

    Plugin Author WPKube

    (@wpkube)

    Just tried and it’s working fine ( I had to change the quote characters but I’m guessing that’s just the forum converting the quotes ).

    This is the code anyway with the correct quotes:

    <link href="//use.typekit.net/oag1xza.css" type="text/css" rel="stylesheet" />

    So the issue is most likely that the CSS that applies the font-family is not taking effect. Either not correct or not being loaded at all ( you mentioned child theme’s CSS is not loading ).

    The plugin does not affect which CSS files load so make sure you have the correct code in the child theme. You do need to enqueue the file with PHP code, give the official docs on child themes a check, most importantly the 3rd point ( enqueue stylesheet )

    Thread Starter kilate.pro

    (@kilate)

    Hi Wpkube,
    Part of the child’s css is working. But concerning to fonts, the css which is loading is the parent’s. Don’t know why… although I have mentioned exactly the same classes as in parent’s.

    Plugin Author WPKube

    (@wpkube)

    Well since it’s a local server that complicates things a bit, I can’t check it out myself.

    When you set it up live let me know and I’ll check it out. But definitely not an issue with the plugin, the issue is somewhere in the child theme’s code, the CSS is not being applied properly.

    Thread Starter kilate.pro

    (@kilate)

    Ok. Thank you very much.

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Typekit not working’ is closed to new replies.