Support » Plugin: Disable and Remove Google Fonts » Doesn’t Remove Google Font API on Theme The Hue

  • Resolved David

    (@timelesscinemashow)


    Hi Fonts Plugin Team,

    My theme doesn’t use Google Fonts. I installed this Plugin to assist me in removing the connections on pages where these APIs are being pinged. But to no avail.

    Please see below for details. Any assistance is greatly appreciated.

    – fonts.googleapis.com
    – fonts.gstatic.com

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author DannyCooper

    (@dannycooper)

    Hi @timelesscinemashow,

    The fonts are being loaded by your theme, please see the relevant code snippet, in particular the class name:

    <link class="thehue-g-fonts" href="//fonts.googleapis.com/css?family=Montserrat%3A400%2C600%7CMulish%3A300%2C400%2C400i%2C700%2C700i%2C900%2C900i&subset=&display=swap" rel="stylesheet" /><style>

    Thread Starter David

    (@timelesscinemashow)

    Hi Danny,

    Thank you for the help on this, as the detail is incredibly helpful. By chance, would you be able to point me in a direction that could assist me in removing this connection?

    I know this is beyond what any user should ask of you, so any guidance you can provide is greatly appreciated. Thank you for your time!

    Thread Starter David

    (@timelesscinemashow)

    [EDITED]

    Found it! Thank you Danny! I appreciate you!

    • This reply was modified 1 year, 6 months ago by David.
    • This reply was modified 1 year, 6 months ago by David.
    Plugin Author DannyCooper

    (@dannycooper)

    Awesome!

    Thread Starter David

    (@timelesscinemashow)

    If it helps anyone with The Hue (or a similar theme), the issue is that there’s a file “Styles.php” within the theme folder that is running the ping to Google’s API for fonts.

    I primarily wanted to get rid of this for GDPR compliance efforts. If you can, install another font as your websites font(s) and replace the text with your own website’s URL until you can have a proper fix.

    File Location:
    …wp-content/themes/thehue/main/styles.php

    Portion of Script Where Google Fonts is Called:
    href=”//fonts.googleapis.com/css?family

    Big thanks to Danny for this great FREE plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Doesn’t Remove Google Font API on Theme The Hue’ is closed to new replies.