Replace Google Fonts with Bunny Fonts
Replace Google Fonts with Bunny Fonts
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
Installation
This section describes how to install the plugin and get it working.
- Upload the plugin folder to the
/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Reviews
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
Broke CSS and SliderRevolution
By ssavitzky on December 5, 2022
Does not work
By frankbacka on November 17, 2022
Thanks !
By MZed (MichelZed) on November 16, 2022
The easiest way for GDPR-compliant google fonts (without google)
By Krzysztof Planeta (chrisplaneta) on November 13, 2022
Excellent!
By Kristof Loyens Quantum Leap (Quantum Leap) on October 22, 2022
Good!
By ws24 on September 11, 2022
Nice and fast installation
By superguppi on September 1, 2022
Easy and fast
By Gordon Böhme (gorbo) on August 8, 2022
Changelog
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_preconnecttoal_bunny_insert_bunny_preconnect
1.0
- initial release