Replace Google Fonts with Bunny Fonts

Plugin Banner

Replace Google Fonts with Bunny Fonts

by Antonio Leutsch

Download
Description

Replace Google Fonts with Bunny Fonts in the HTML Markup of your WordPress site.
It also replaces the preconnects with the correct ones.

To disable creating a preconnect to fonts.bunny.net, add the following line to your functions.php:

add_filter('al_bunny_insert_al_bunny_preconnect', '__return_false');

To disable removing the google fonts preconnect, add the following line to your functions.php:

add_filter('al_bunny_remove_google_preconnect', '__return_false');

To disable removing the google fonts dns-prefetch, add the following line to your functions.php:

add_filter('al_bunny_remove_google_prefetch', '__return_false');

Supported Cache Plugins

  • Autoptimize
  • SiteGround Optimizer
  • Swift Performance Lite
  • W3 Total Cache
  • WP Fastest Cache Plugin
  • WP Rocket
  • WP Super Cache

This section describes how to install the plugin and get it working.

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

not optimal solution

By RazielKanos on February 28, 2023

Breaks numerous things, depending on what other plugins you run, so be careful and test after activating.
Unfortunately, no support response after 2,5 months.

Misleading regarding GDPR / DSGVO

By Martin Sauter (martin.sauter) on December 6, 2022

This plugin should not be tagged as «DSGVO». The problem with Google Fonts is not the tracking, but the transmission of the user's IP address to a third party. This problem exists with any font hosting service, so this plugin does NOT make your website GDPR compliant. EDIT: The tag mentioned above has been removed, so my issue is resolved. However, I would still argue that simply replacing Google Fonts with another service is not the ideal solution.

Broke CSS and SliderRevolution

By ssavitzky on December 5, 2022

After activating the plugin, the SliderRevolution instance at the top of my home page vanished, along with the site's header. Everything after that was expanded to full width instead of being limited in width. Avoid.

Does not work

By frankbacka on November 17, 2022

sadly it doesnt work, even with adding those Codes to the function.php

Thanks !

By MZed (MichelZed) on November 16, 2022

One more step to... get away from G. 😉

The easiest way for GDPR-compliant google fonts (without google)

By Krzysztof Planeta (chrisplaneta) on November 13, 2022

Simply great. Does exactly what it says in the easiest way possible. It is surprising, that it is not more popular. I wrote an article about it on my plugin's blog (fullpictureplugin.com). Maybe it will help. I am thinking also about linking to it from the plugin's admin pages. It may give you a few installs. Have a great day guys Krzysztof Planeta

Excellent!

By Kristof Loyens Quantum Leap (Quantum Leap) on October 22, 2022

Great work man, nifty little plugin that gets rid of that Google Fonts ip tracking. Thanks for this!

Good!

By ws24 on September 11, 2022

Very easy plugin to avoid Google fonts tracking and become GDPR compliant.

Nice and fast installation

By superguppi on September 1, 2022

Nice Plugin!

Easy and fast

By Gordon Böhme (gorbo) on August 8, 2022

Elegant way to make your website GDPR compliant.

2.1.2

  • add polyfill for str_contains() function

2.1.1

  • Adding Array of strings for replacing and removing different spellings of Google Fonts

2.1

  • Added support for WP Rocket
  • Added support for WP Super Cache
  • Added support for W3 Total Cache

2.0

  • Added support for WP Fastest Cache Plugin
  • Added support for Autoptimize Plugin
  • added filter to disable dns-prefetch to google fonts
  • change filter name from al_bunny_insert_al_bunny_preconnect to al_bunny_insert_bunny_preconnect

1.0

  • initial release
Back to top