How to replace Google Fonts with GDPR-compliant fonts.

When someone visits a website that uses fonts loaded from Google’s servers, Google can track their IP – without their consent. Obviously, this breaks GDPR.

What to do about it?

This will get handy:
How to check if Google Fonts are used on your site

There are 2 ways to check if your site uses Google Fonts:

  1. Scan your website with Fonts Checker, or
  2. Check fonts in your browser console (better but advanced)

Solution 1. Enable the Safe Fonts module

safe fonts module

Safe Fonts module is a simple link replacer and may not work in all cases.

It looks for links to font files hosted by Google and replaces them with links to the same files hosted by Bunny Fonts – which complies with GDPR (learn more).

This is a simple replacement method so it only works on fonts that are NOT dynamically loaded by other scripts. However, it is a good method to start with.

If there are still some Google Fonts on your site…

Option 2. Use the OMGF plugin

OMGF is a free WordPress plugin specialized in making Google Fonts comply with GDPR. It uses various techniques to do it and should be able to “fix” Google Fonts better than our solution.

But, if there are still some fonts on your site…

Step 3. Change settings of your theme and plugins

Check settings of your theme and plugins. Look for any places where they load Google Fonts and do one of the following:

  1. Turn Google Fonts off (if they are optional)
  2. Load them locally (if you have such option)

What if it doesn’t work?

In such case, you will have to turn off Google Fonts in your plugins and theme, load font files to the server and change your site’s CSS. This is however more advanced and goes beyond the scope of this article.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments