WordPress.org

Ready to get started?Download WordPress

Forums

Typekit Fonts for WordPress
[resolved] Incorrect Javascript parsing. (4 posts)

  1. cassiel
    Member
    Posted 1 year ago #

    The plugin incorrectly attempts to match the current Javascript embed code from Typekit. I'm looking at the code


    <script type="text/javascript" src="//use.typekit.net/XXXXXX.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>

    That's ".net" rather than ".com", and with no http(s?): in front of it. Munging the code by hand to match the plugin's regexp seems to work.

    http://wordpress.org/extend/plugins/typekit-fonts-for-wordpress/

  2. James Collins
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    It looks like Typekit have recently changed their embed code format.

    I am updating the plugin to use the new embed code, and will release a new version ASAP.

    James

  3. James Collins
    Member
    Plugin Author

    Posted 1 year ago #

    Version 1.4 has now been released to address this.

    Thanks for letting me know.

    James

  4. cassiel
    Member
    Posted 1 year ago #

    No problem - thanks for the quick update; I'll check it on my staging site now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.