Due to network problems, Google fonts are basically inaccessible in mainland China, and many foreign themes use Google fonts. When these fonts can not be opened, it will slow down the speed of the whole page, resulting in slow opening of the site.Local Google Fonts plugin F can download Google fonts to their own servers, so that the page from their own servers to load Google fonts, so you can solve the problem of slow opening of the site because of Google fonts brought about by the problem.
Plug-in main features
Local Google Fonts plugin will automatically recognize the Google fonts loaded in the WordPress front-end, and then list these fonts in the plugin settings page, as shown in the figure below, we can click the "Host Locally" button to directly download the corresponding Google fonts locally, and then next time when you open the front-end page, the Google fonts in the page will be directly loaded from the the next time you open the front-end page, the Google fonts in the page will be loaded directly from your own server.
caveat
It is worth noting that the Local Google Fonts plugin only checks Google fonts introduced through the wp_enqueue_style function, if your website uses @import or directly adds code to the header to introduce Google fonts, you need to modify the introduction method before you can use the features provided by the plugin.
Recommended Reasons
Google fonts can really enrich the layout and style of the web page, especially for the English site, even if it is a Chinese site, the site content can not be avoided in English content. Only English network problems and give up the use of Google fonts is cost-effective, this plug-in can help us solve the network problem of using Google fonts, so that we can rest assured that the use of Google fonts to improve the design of our website, it is worth trying.
1 thoughts on “Local Google Fonts – 把谷歌字体下载到自己的服务器上”
Thanks to the big guy for the tutorial! Solved my website landscaping problem.