Troubleshooting Kirki Plugin Error : Fonts don’t load correctly

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.

Not Finding
What You Are Looking For?

Simply go to our support forums and describe the problem you are facing.
We will be happy to help you!

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Holiday, Weather & Festive effects
to pimp your WordPress Site