Autoptimize
92Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asy...
A field for Advanced Custom Fields which allows users to select Google fonts with advanced options
ACF: Google Font Selector is a WordPress plugin that enables you to add a Google font selector field to your site. It allows for flexible font loading by letting you select font variants and charsets, and it can automatically enqueue fonts in the theme header based on your settings.
The plugin is compatible with both ACF 4 and ACF 5, making it suitable for developers familiar with Advanced Custom Fields. To use the plugin effectively, you will need a Google API key to retrieve the font list from Google.
Best for: This plugin is best for developers using Advanced Custom Fields who want to integrate Google Fonts into their WordPress sites.
What it does well
Where it falls short
ACF: Google Font Selector provides a straightforward way to manage Google Fonts within WordPress, but its age and reliance on an API key may limit its appeal for some users.
danielpataki's own description of ACF: Google Font Selector, lightly tidied.
This plugin allows you to create a Google font selector field with different options. The plugin also creates the font request in the theme header to autoload the fonts if you’d like. Font variants and charsets can be selected separately to make font loading more flexible and optimized.
Font options added to any options page will always be enqueued. Any fonts added to post pages will only be enqueued when that specific post is displayed.
To grab the font list from Google you’ll need an API key. This is free and easy to do, take a look at this guide to get an API key.
This ACF field type is compatible with both ACF 4 and ACF 5.
Once installed the list of Google Fonts will be retrieved from a static file included in the plugin. If you would like the list to be pulled from the Google API you will need to define your API key. You can do this in Settings->Google Font Selector in the admin.
There are a few more advanced controls you can set to make the plugin do your bidding. If you would like to hard-code the API key and disable users from seeing the nag screen and setting panel you can define the ACFGFS_API_KEY constant.
define( 'ACFGFS_API_KEY', 'your_google_api_key' );
The ACFGFS_REFRESH constant can controls how frequently the plugin checks the Google API for updates. The value is in seconds, 86400 would be a day. The default is set to 7 days.
define( 'ACFGFS_REFRESH', 259200 );
If you would like to disable the automatic enqueueing of fonts you can use the ACFGFS_NOENQUEUE constant. The fonts are only enqueued automatically when this constant is not defined. Define the constant to disable enqueueing.
Other plugins for typography control.
Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asy...
The #1 fonts plugin for WordPress. 1,400+ Google Fonts, Adobe Fonts and your own font files. Live preview, no...
Redux is a simple, truly extensible, and fully responsive options framework for WordPress themes and plugins....
The original Google Fonts self-hosting plugin. Automagically caches your fonts locally — no configuration (or...
SpeedyCache is a WordPress cache plugin that helps you improve performance of your WordPress site by caching,...
Upload custom fonts with custom font uploader. Auto converts to woff2 for better performance. Self-hosted, GDP...