sandywp / plugins / local-google-fonts

Local Google Fonts

4.6 out of 5 stars. 4.6 83 reviews

Host your used Google fonts on your server and make your site more GDPR compliant 💯.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v0.24.0 100,000+ installs WP 4.6+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Local Google Fonts running inside a SandyWP sandbox

About this plugin

Host your used Google fonts on your server and make your site more GDPR compliant 💯.

About 50 mio* sites use Google Fonts and in January 2022 a German court has ruled that using Google Fonts is a violation of Europe’s GDPR (General Data Protection Regulation).

more on wptavern.com.

Questions

Will this load Google Fonts automatically?

Yes, if you check the option to load fonts automatically. Otherwise each font set must be manually triggered.

Is it Legal to Self-Host Google Fonts?

Yes. The open source fonts from Google Fonts are published under a licenses that allow you to use them on any website, no matter if it’s commercial or personal.

How to check if my site is loading Google Fonts?

It’s easy to check if your site is loading fonts from a third party source (check 2nd screenshot above):

  1. Open the dev tools (Cmd + Opt + I on Mac or F12, or Ctrl + Shift + I on Windows)
  2. Go to the Network tab and select the Fonts type
  3. Reload your page to see all fonts loaded on your site.
  4. Check the Domain column if it contains domains from a third party (Google is fonts.gstatic.com)

If you host your fonts locally with Local Google Fonts there should be no fonts loaded from the Google servers.

My fonts do not show up on the settings page, what can I do?

Fonts are discovered once they are used. Try to browse your front end first and get back to the settings page.

My fonts are not replaced, what can I do?

The plugin currently only checks fonts embedded via wp_enqueue_style if you use Google fonts via @import you have to change that first.

The Divi theme still loads a Google font?

The DIVI theme has a custom implementation of Google Fonts. To use LGF with DIVI disable Improve Google Fonts Loading on the Performance Settings page of DIVI.

Why only the woff2 font format is loaded?

Woff2 is the successor of the woff format and and offers a 30% average compression gain over the original format. It is also supported by over 96% of browsers (source).

How to host Fonts loaded with Slider Revolution?

Slider Revolution uses it’s own way to load Google Fonts and LGF cannot handle them. Slider Revolution has a built in feature for their sliders.

  1. Goto Slider Revolution
  2. Click on “Global” in the top navigation
  3. Find the “Fonts” section and Choose “Cache Fonts Local” on “Enable Google Fonts download”
  4. Save your settings.

4.6

83 reviews

  • 5 ★ 73
  • 4 ★ 2
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 8

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.