Black Friday! Get up to 25% off GP Premium! Learn more ➝

[Support request] Typekit Fonts

Home Forums Support [Support request] Typekit Fonts

Home Forums Support Typekit Fonts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #347798


    I tried both typekit codes the wp_head hook but in has no effect.
    I also have a this default code below in the typekit plugin settings together with H1,H2..

    How exactly do I have to put the code in?
    These are the two code options from Typekit:

    1. Default

    <script src=""></script>
    <script>try{Typekit.load({ async: true });}catch(e){}</script>

    2. Advanced

      (function(d) {
        var config = {
          kitId: 'rdw7ftf',
          scriptTimeout: 3000,
          async: true
        h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src=''+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)

    Thanks for your help.

    GP Premium 1.3.1
    Customer Support

    Hi Leo.

    I did read that one as well and it doesn’t seem to work unfortunately.

    Lead Developer
    Lead Developer

    You’ve tried adding this into the wp_head hook?:

    <script src=""></script>
    <script>try{Typekit.load({ async: true });}catch(e){}</script>

    I did. No change.

    Lead Developer
    Lead Developer

    Once that code is added, you need to add your font to your elements using CSS. Have you done that?

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