Optimize the Google font of WordPress to accelerate the running of the domestic server, wordpressgoogle. Optimize the Google font of WordPress to accelerate the running of domestic servers. wordpressgoogle cannot load Google fonts without turning over the wall because Google is completely damaged. Many new users often complain about optimizing the Google font of WordPress to accelerate the running of domestic servers. wordpressgoogle
Google fonts cannot be loaded without turning over the walls because Google is completely damaged. Many new users often complain about how slow the host they bought is. the example site is available for seconds, but it takes dozens of seconds for their website to be opened, and it is a newly installed WordPress website, without any images, it is also very slow. In fact, the WordPress speed is not slow because of the host, but because of the Google font. today we will provide you with an ultra-detailed tutorial on optimizing the Google font.
How to check whether your website contains Google Fonts
First, open FireFox or Chrome and enter the stealth mode. Firefox can use the shortcut key Ctrl + Alt + P, and Chrome can use the shortcut key Ctrl + Alt + N.
Second, in developer mode, both browsers can use the shortcut Ctrl + Alt + N to enter. Here we use FireFox as an example.
Then visit your website and sort the loaded content by domain name under the window. you can see the content of 'fonts .googleapis.com ', which indicates that your WordPress actually references the Google font.
In Chrome, it looks like this:
Optimize Google font Solution 1:
Install the plug-in. this is the simplest and most suitable for new users. Search for 'Disable Google fonts' in the WordPress background, and a bunch of plug-ins will come out. the first two plug-ins are "disable Google fonts" and "Remove Google Fonts References ". The "Remove Google Fonts Reference" plug-in is more effective.
Optimize Google font Solution 2:
Modify the WordPress code. If you can modify your WP code through FTP or online file editor, this is an effective method. Don't worry about newbie Webmasters. even if you don't have any code foundation, you can follow the tutorial step by step. Open the wp-uplodes/scriptes-loader.php file. if you download it locally through FTP, we recommend that you use notepad ++ to open it. Use Ctrl + H to replace googleapis with useso in full text, and save the upload overwrite source file.
Ultimate solution:
If the above methods fail, there is a simple and crude method to package and download all WP files to the local device. of course, the uploads folder under wp-content does not need to be used. Use the notepad ++ "file search" function to replace all googleapis with useso, and then upload and overwrite the modified files.
However, if CDN acceleration or any cache plug-in is used, the cache should be cleared after modification, especially the wp-total-cache and other plug-ins.
Google font cannot be loaded without a wall. Many new friends often complain...