

These can be free in the Plugin Directory or can be cost-based plugin from a third-party, or other script can use the code without any restrictions as to the license they use. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. They can extend functionality or add new features to your WordPress websites.
#WORDPRESS ENQUEUE GOOGLE FONTS SOFTWARE#
Every theme, plugin Plugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. We chose to license this script under the MIT license, which is GPL2.0-compatible. WordPress themes hosted in the official repository are required to be GPL2.0-compatible, but there is a wider community of WordPress themes out there, and they are not always GPL2.0-compatible. We believe that locally hosting webfonts will benefit the whole ecosystem by improving performance for visitors and increasing privacy online. UsageĪ WordPress theme will typically enqueue assets using the wp_enqueue_style function:

This is just the first step to what we hope will be a more unified approach. The Core Development Team builds WordPress., as there is a discussion on Trac. Our hope is to see a similar method implemented in WordPress Core Core Core is the set of software required to run WordPress. When that happens, themes that use Google-Fonts will need to implement a way to locally host the fonts. The intention is to remove the Google-Fonts exception soon from our guidelines. To that end, the Themes Team has built an easy-to-use implementation that themes can start using and you can get it on our GitHub repository. They are widely used and though there were always privacy & tracking concerns, we could not remove the exception until we had a viable alternative for theme-authors. Historically, google-fonts have been used as a way for themes to provide more appealing typography options. The only exception to that rule is Google-Fonts. The current guidelines for themes prohibit the use of CDNs to load assets due to privacy/tracking concerns.
