Custom font typekit.com not charged correctly in header

Posted in: Newspaper
Post count: 18

Hi
I have to report a bug with the typekit function in the admin panel: the script is not charged in the header section as indicated from typekit, but at the end of the body.
Can you please provide me details on how to correct it?

Tks
Roberto

Post count: 1291

Hi,

Please provide more details about this issue, did you received any error while using typekit?
We placed it at the end to avoid render blocking. You can find the code here – http://screencast.com/t/TR1n9aixepCq , try to change the hook on which it loads, try wp_head – https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

Thank you!

Post count: 16

Emil G, I tried your suggestion and it did not work for me.

I have an active typekit [ Kit ID: imu8ebg ] and have followed the instructions here to a “T”:
https://forum.tagdiv.com/custom-typography/

I have the Typekit javascript in place and the “font families” defined properly.

Yet no matter if the javascript is in the header or footer my Typekit is not working.

add_action('wp_footer', 'td_add_js_typekit', 100);

// OR

add_action('wp_head', 'td_add_js_typekit', 100);

So where do I go from here?

Post count: 22421

Hello,
Please send us an email at contact@tagdiv.com and provide wp-admin and ftp access so we can inspect this issue. The typekit fonts should display properly. Please also include a link to this website.
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.