Linux 软件免费装
Banner图

Embed Google Fonts

开发者 adrian2k7
moewe
creabrain
更新时间 2024年5月2日 16:28
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 6.5.2
版权: GPL v3
版权网址: 版权信息

标签

embed gdpr google fonts

下载

2.1.0 2.2.0 2.2.1 2.2.3 2.2.4 2.0.5 2.0.6 2.2.2 3.0.0 3.0.1 2.3.0 2.3.1 2.1.1 3.0.2 3.1.0 3.1.1

详情介绍:

Embed Google Fonts tries to automatically replace registered Google Fonts from themes and plugins with local versions, directly loaded from your own server. Contribute: https://github.com/moewe-io/embed-google-fonts Notes Thank you: Fonts are downloaded using: https://gwfh.mranftl.com/fonts

升级注意事项:

Nothing special

常见问题:

How to use locally stored fonts directly?

It is possible to avoid using Heroku and directly use locally hosted fonts. Easy way:

  • Let the plugin download the fonts
  • Click the button in the plugin list overview ;)
Custom way:
  • Create a folder "embed-google-fonts" in your "wp-content" folder
  • For every font create a subfolder, i.e. "embed-google-fonts/open-sans/"
  • Create a file "embed-google-fonts/open-sans/_font.css"
  • Edit your "_font.css" to include rules for loading your local font

Does this work with every theme and plugin?

No, themes and plugins must use wp_enqueue_style to load Google Fonts. Just try it, if it works, than you are fine.

Does it work with caching plugins?

Generally yes. You may exclude some files, if there are problems.

Does it work with WP Rocket?

Yes, it is working with WP Rocket.

Does it work with WP Fastest Cache?

If you are using WP Fastest Cache, you should create an exclude CSS rule for "_font.css"

Does it work with Divi?

You have to disable

  • Improve Google Fonts Loading and
  • Defer jQuery And jQuery Migrate
in
  • Divi → Theme Options → General → Performance

更新日志:

3.1.1 3.1.0 3.0.2 3.0.1 3.0.0 2.3.1 2.3.0 2.2.4 2.2.3 2.2.2 2.2.1 2.2.0 2.1.0 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.3.3 1.3.2 1.3.1 1.3.0 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0