WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by danielpataki v3.0.1

ACF: Google Font Selector

A field for Advanced Custom Fields which allows users to select Google fonts with advanced options

ACF: Google Font Selector

The facts

Rating
3.5★ from 6
Active installs
3k+
Price
Free
Last updated
28 Apr 2015
Added
Feb 2014
Requires WP
3.5
Tested up to
WP 4.2.39
Downloads
21,017

Our analysis

AI-assisted

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

  • Creates a Google font selector field
  • Allows selection of font variants and charsets
  • Compatible with ACF 4 and ACF 5
  • Can automatically enqueue fonts in the theme header
  • Retrieves font list from a static file or Google API

Where it falls short

  • Requires a Google API key for full functionality
  • Last updated in April 2015, may not be compatible with newer WordPress versions

Verdict

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.

From the developer

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.

Google API Key

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.

ACF Compatibility

This ACF field type is compatible with both ACF 4 and ACF 5.

Thanks

Usage

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.

For Developers

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for typography control.

Autoptimize

Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asy...

Free 800k+ installs 4.7★ (1,428)
Fonts Plugin

The #1 fonts plugin for WordPress. 1,400+ Google Fonts, Adobe Fonts and your own font files. Live preview, no...

Free 200k+ installs 5★ (1,220)
Redux Framework

Redux is a simple, truly extensible, and fully responsive options framework for WordPress themes and plugins....

Free 900k+ installs 4.4★ (273)
OMGF

OMGF

90

The original Google Fonts self-hosting plugin. Automagically caches your fonts locally — no configuration (or...

Free 300k+ installs 4.7★ (212)
SpeedyCache

SpeedyCache is a WordPress cache plugin that helps you improve performance of your WordPress site by caching,...

Free 600k+ installs 4.4★ (30)
Use Any Font

Upload custom fonts with custom font uploader. Auto converts to woff2 for better performance. Self-hosted, GDP...

Free 200k+ installs 4.7★ (1,149)