After updating to the latest version of Kirki (e.g., version 4.0.20), some users have experienced wrong font display on their website.
Solution
The following solution changes the core Kirki plugin to ensure that it retrieves woff2 files rather than woff.
Edit this file: .../plugins/kirki/kirki-packages/module-webfonts/src/Webfonts/Downloader.php
Replace line 186 with this line:
1 | $user_agent = ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0’; |
Next install the Transients Manager plugin and look for: kirki_remote_url_contents
Then, delete that transient. This has an expiry of 7 days so it will eventually flush by itself if you wait long enough.
Test the site now, and the fonts should display again.
You can remove the Transients Manager plugin afterwards.