5.1.5 to 6.0.5 - data-x-google-fonts in source code

After migrating a site with local font files from Pro 5.1.5 to 6.0.5 I have found this line of code in the source code and could not delete it:

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i%7CExo:700&amp;subset=latin,latin-ext&amp;display=auto" type="text/css" media="all" crossorigin="anonymous" data-x-google-fonts="">

These are indeed the fonts this site is using but we are only using local font files. I have checked the fonts settings and everything seems to be fine. Even after deleting the fonts and adding two new fonts with font family linked to the local font files the line of code stays.

Do you have any idea?

1 Like

I’d first check that every there are no theme options referencing a google font. It can sometimes be misleading. Searching in the dev tools can help. Then if you’re not interested in loading google fonts at all you can do a filter like below. Let me know if that helps!

    add_filter("cs_load_google_fonts", function() {
      return false;
    });
1 Like