How to disable or remove Google Font code?

This topic has 6 replies, 3 voices, and was last updated 10 years, 4 months ago ago by Eva Kemp

  • Avatar: Sungryong Ha
    Sungryong Ha
    Participant
    July 28, 2014 at 08:11

    Hello,

    I have analysed my website, loading Google font api makes super slower.

    Which .php files included this code (http://fonts.googleapis.com ~)?

    I am a new about html; could not find out where those codes are.

    Please let me know.

    Regards,
    SR

    5 Answers
    Avatar: Eva
    Eva Kemp
    Participant
    July 28, 2014 at 09:51

    Hello,

    Google fonts code is placed in the file wp-content/themes/legenda/framework/shortcodes.php.
    We recommend you to make any changes in a child theme not to lose the modifications after the theme update.

    Regards,
    Eva Kemp.

    Avatar: candaceljoseph
    candaceljoseph
    Participant
    January 1, 2015 at 21:55

    Where is the Google fonts script being called in on the Royal theme?

    Avatar: Eva
    Eva Kemp
    Participant
    January 2, 2015 at 11:02

    Hello @candaceljoseph,

    Google fonts code is placed in the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Google Font”).

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: candaceljoseph
    candaceljoseph
    Participant
    January 2, 2015 at 16:56

    Open Sans is the only font being called in there (see screenshot). I’m still getting Roboto throughout the theme – where is that one being called in?

    https://dl.dropboxusercontent.com/u/21083811/Screen%20Shot%202015-01-02%20at%209.53.52%20AM.png

    Avatar: Eva
    Eva Kemp
    Participant
    January 2, 2015 at 19:48

    Hello @candaceljoseph,

    You need also check the file wp-content/themes/royal/framework/theme-functions.php.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘How to disable or remove Google Font code?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.