• Resolved rawhasan

    (@rawhasan)


    Jetpack is inserting the following Google font code in the head of my site:

    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600" />

    Please let me know how to remove this.

    If I disable Jetpack, it goes away. I am using 5.2.1 version of Jetpack.

    Regards!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rawhasan

    (@rawhasan)

    To update further, I tried to remove this code with WP Asset Clean-up. The plug-in can clean it, but it breaks the photo-gallery (tiled photo gallery and carousel).

    Regards!

    I just noted the same problem. JetPack is inserting this exact tag in my case:

    <link rel='stylesheet' id='open-sans-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.8.1' type='text/css' media='all' />

    I’ve tried to deregister the style:

    wp_deregister_style( ‘open-sans’ );

    But then JetPack inserts it again, but a bit different:

    <link rel='stylesheet' id='open-sans-css' href='https://fonts.googleapis.com/css?family=Open+Sans&ver=5.2.1' type='text/css' media='all' />

    It seems it is used by “likes” and comment-likes, but I have not those modules enabled.

    It is annoying.

    There is a new version and this issue seems fixed. Open sans font seems to be enqueued only for comment-likes now.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Jetpack inserting Google font in header’ is closed to new replies.