sandywp / plugins / local-google-fonts
Local Google Fonts
Host your used Google fonts on your server and make your site more GDPR compliant 💯.
Ready in seconds.
v0.24.0 100,000+ installs WP 4.6+ PHP 7.4+

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):
- Open the dev tools (Cmd + Opt + I on Mac or F12, or Ctrl + Shift + I on Windows)
- Go to the Network tab and select the Fonts type
- Reload your page to see all fonts loaded on your site.
- 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_styleif you use Google fonts via@importyou 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.
- Goto Slider Revolution
- Click on “Global” in the top navigation
- Find the “Fonts” section and Choose “Cache Fonts Local” on “Enable Google Fonts download”
- Save your settings.
sandywp / also on the shelf
Try another plugin
2.7 · 30K+ installs
さくらのレンタルサーバで株式会社モリサワ提供のWebフォント33書体が無料で利用できるプラグインです。
Adobe Fonts (formerly Typekit) for WordPress
4.9 · 10K+ installs
Integrate the Adobe Fonts service into your WordPress website or blog to use a range of over 25,000 high-quality fonts.
Japanese font for WordPress(Previously: Japanese Font for TinyMCE)
3.8 · 10K+ installs
Add Japanese font to Gutenberg and TinyMCE Advanced plugin's font family selections.
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.