
內容簡介
在 WordPress 網站的 HTML 標記中使用 Bunny Fonts 來替換 Google Fonts。
此外,這個外掛還會將預連接修改為正確的連接。
如果要停用與 fonts.bunny.net 的預連接,請在 functions.php 加上以下程式碼:
add_filter('al_bunny_insert_al_bunny_preconnect', '__return_false');
如果要停用刪除 Google Fonts 預連接,請在 functions.php 加上以下程式碼:
add_filter('al_bunny_remove_google_preconnect', '__return_false');
如果要停用刪除 Google Fonts dns-prefetch,請在 functions.php 加上以下程式碼:
add_filter('al_bunny_remove_google_prefetch', '__return_false');
支援的快取外掛
Autoptimize
SiteGround Optimizer
Swift Performance Lite
W3 Total Cache
WP Fastest Cache Plugin
WP Rocket
WP Super Cache
外掛標籤
開發者團隊
② 後台搜尋「Replace Google Fonts with Bunny Fonts」→ 直接安裝(推薦)
原文外掛簡介
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
