Host Google Fonts Locally

Leírás

No configuration required, simply activate the plugin and it just works 🙂

This is an addon for the Google Fonts for WordPress plugin. It will only rewrite fonts loaded by that plugin.

Hosting Google Fonts locally removes the need for your website to make requests to Google’s servers. This can be useful when optimizing performance and also for complying to GDPR requirements.

How it Works

  • Downloads the font files to your /wp-content/uploads folder.
  • Replaces the Google references with your own local domain.
  • Remove the Google Fonts ‘prefetch’ resource hints.

Further Reading

For more information on using Google Fonts in WordPress, check out the following:

Bugs

If you find an issue with this plugin, let us know here!

Contributions

Anyone is welcome to contribute to the ‘Google Fonts for WordPress’ plugin.

There are various ways you can contribute:

  1. Translate the Host Google Fonts Locally plugin into different languages
  2. Provide feedback and suggestions on enhancements

Képernyőmentések

  • Boost Performance by Hosting Google Fonts Locally

Telepítés

Upload ‘Host Google Fonts Locally’, activate it, and you’re done!

GYIK

Will this plugin rewrite fonts loaded by my theme and/or other plugins?

Currently, this plugin only rewrites fonts loaded by the Google Fonts for WordPress plugin. We may expand to other themes/plugins in future.

Vélemények

2019.05.01.
The plugin loads the font(s) used in /wp-content/uploads and starts loading them from that directory, reducing the loading time drastically. I ran into a bit of a problem by adding a ssl certificate to the site later, causing a mixed content error: The page at ‘https://whatever.com/’ was loaded over HTTPS, but requested an insecure font ‘http://whatever.com/wp-content/uploads/2019/04/ahcfv8qz1zt6hCC5G4F_P4ASpU8-3.woff’. This request has been blocked; the content must be served over HTTPS. Adding an ssl certificate after installing WordPress does not update /wp-admin/options-general.php 😉 After Danny pointed that out, only a rather persistent cache got in the way temporarily. All is fine now!
1 vélemény olvasása

Közreműködők és fejlesztők

“Host Google Fonts Locally” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

“Host Google Fonts Locally” 2 nyelvre lett lefordítva. Köszönet a fordítóknak az áldozatos munkájukért!

“Host Google Fonts Locally” fordítása a saját nyelvünkre.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változási napló

1.0.3

  • Remove font-display: swap; as Google Fonts natively supports it now.

1.0.2

  • Fix textdomain loading

1.0.1

  • Add class_exists() check.

1.0.0

  • Initial release of Host Google Fonts Locally.