Last update at :2024-04-28,Edit by888u
It is true that Baidu's technology and the products it produces are still very good, but the fact that it likes to lie on other people's underwear is not feasible anywhere. If this is not the case, then Baidu will start to be "indescribable", so let's just give it to Friends who use WordPress have a little trouble: accessing the WordPress site is very slow, and logging in to the WordPress backend is very slow. This is all because fonts.googleapis.com is severely slowed down by being "indescribable". Here, we give two steps to solve the problem of fonts.googleapis.
Step one: Add a function disable in function.php of the currently used theme:
class Disable_Google_Fonts { public function __construct() { add_filter( ‘gettext_with_context’, array( $this, ‘disable_open_sans’ ), 888, 4 ); } public function disable_open_sans( $translations, $text, $context, $domain ) { if ( ‘Open Sans font: on or off’ == $context && ‘on’ == $text ) { $translations = ‘off’; } return $translations; } } $disable_google_fonts = new Disable_Google_Fonts;
Or install a plug-in directly: Disable Google Fonts.
Second step: Open /wp-includes/script-loader.php, search for fonts.googleapis.com to find the code location, and directly delete the entire line where the link //fonts.googleapis.com/… is located.
Try it, I did it too!
Recommended site searches: Mainland China proxy IP, Wanwang domain name registration official website, free virtual host, mainland China IP proxy, how to register a domain name, network registration, vps host, Japanese proxy server IP, US unlimited content host, free foreign space,
发表评论