當我們在本地測試 WordPress 時,有時會很慢,
那可能是因為會去載入 googlefonts.admincdn.com,每訪問一次,就要去訪問一下 googleapis.com,網站當然會很慢了。
如果要取消它的話,可以裝外掛 disable-google-fonts: https://WordPress.org/plugins/disable-google-fonts/
remove-google-fonts-references : https://WordPress.org/plugins/remove-google-fonts-references/
如果不想裝外掛,可以找到 wp-include/script-loader.php
找到:
//$open_sans_font_url = "//googlefonts.admincdn.com/css?family=Open+Sans:300italic,400italic 。。。 ---把這行註釋就可以。
或改成 $open_sans_font_url ='';
或把 googlefonts.admincdn.com 替換為 fonts.useso.com
----
再全站搜下 fonts.google
或在當前主題下的 function.php 搜下。有的主題會在 function twentythirteen_fonts_url() {....} 裡載入。