https://github.com/yoast/webfonts-api-example-plugin
An example plugin, using the Webfonts API from https://github.com/aristath/webfonts-api
https://github.com/yoast/webfonts-api-example-plugin
Last synced: 6 months ago
JSON representation
An example plugin, using the Webfonts API from https://github.com/aristath/webfonts-api
- Host: GitHub
- URL: https://github.com/yoast/webfonts-api-example-plugin
- Owner: Yoast
- License: mit
- Created: 2021-11-04T07:47:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T12:38:00.000Z (over 4 years ago)
- Last Synced: 2025-04-21T09:06:05.712Z (about 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webfonts-api-example-plugin
An example plugin, using the Webfonts API from https://github.com/Yoast/webfonts-api
## Instructions:
* Use the twentytwentyone default theme.
* Install and activate the webfonts API plugin from https://github.com/Yoast/webfonts-api/ - or just use the direct zip download (https://github.com/Yoast/webfonts-api/archive/refs/heads/main.zip)
* Install and activate this plugin (https://github.com/Yoast/webfonts-api-example-plugin/archive/refs/heads/main.zip)
* Go to the customizer, and you'll see a new "Webfonts API Example" section. You can select a font-family there, and it will be applied both in the frontend and the editor.
The selection of font-families shown in the customizer was completely random, just the top ones that appeared when I opened Google-fonts.