Optimized WordPress Installation Package: Remove Google Fonts

wordpress optimizationremove google fontswordpress installation packagetwentyfourteen themetangstyle theme
Published·Modified·

Recently, some users have reported that despite using the same hosting and program, their WordPress websites are extremely slow. After confirming that the hosting is not the issue, the most likely cause is that the WordPress program defaults to loading Google Fonts, which affects even the default TwentyFourteen theme. This results in very slow installation times and a laggy backend.

To solve this problem, I have removed Google Fonts from the official WordPress installation package and re-compressed it. Users who need this can directly use the optimized installation package without installing extra plugins or code to remove Google Fonts (except when themes call fonts themselves).

Optimization Details:

  • Remove Google Fonts from the source in WordPress
  • Remove Google Fonts from the default TwentyFourteen theme
  • Delete the built-in TwentyThirteen and TwentyTwelve themes
  • Add the TangStyle V1.0.9 optimized theme

This package only removes the default Google Fonts and makes no other modifications. If you are concerned, you can download the official package and remove them manually using the following method:

  1. Open the wp-includes/script-loader.php file, find the code on line 603, and delete or comment it out. This will prevent the WordPress backend from calling Google Fonts.

Remove Google Fonts Removing Google Fonts

With this change, the backend will no longer be laggy. However, the default TwentyFourteen theme will still call fonts from Google, causing the frontend to become slow as well. The solution is to switch to another theme or manually delete the function twentyfourteen_font_url() that calls Google Fonts in wp-content/themes/twentyfourteen/functions.php.

Download Link: WordPress Optimized Installation Package