Background loading very slowly resolve WordPress / open question. Slow to load plug-ins

Copyright: Life program https://blog.csdn.net/cnpinpai/article/details/84574712

In the new version of WordPress in order to aesthetics background, developers joined Google Web fonts on the page, which will display in English would have been more beautiful. But in China, due to googleapis.com domain names perennial ventilation (you know), a direct result of the background is always open a little on the jammed shut, loading extremely slow, in fact, we simply remove the Google online font can be restored the original speed.

In your theme function.php adding the following code at the top:

add_filter('gettext_with_context', 'disable_open_sans', 888, 4 );
function disable_open_sans( $translations, $text, $context, $domain )
{
if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
$translations = 'off';
}
return $translations;
}

 

Guess you like

Origin blog.csdn.net/cnpinpai/article/details/84574712