Resolving the Issue of fonts.googleapis.com Being Unreachable in China for WordPress

Nearly all styles of WordPress and its themes use fonts.googleapis.com. However, due to well-known reasons in China, Google services cannot be accessed normally. This results in WordPress pages failing to load on many devices within China.

Solution

Replace fonts.googleapis.com with fonts.useso.com (a domestic acceleration node provided by 360 Website Guardian).

Locations to Make the Replacement

  1. In the WordPress backend, go to Appearance and select Editor. Then choose the "Template Functions (functions.php)" file. Search for fonts.googleapis.com and replace it with fonts.useso.com.
  2. In the WordPress file directory, open /wp-includes/script-loader.php. Search for fonts.googleapis.com and replace it with fonts.useso.com.