Tagged: google fonts
Hello,
is it possible to permanently exchange the font loading reference from googleapis.com to useso.com?
I am working on a project in mainland China and Google services slow down the loading time of the site.
I found a plugin here: https://wordpress.org/plugins/googleapis-to-useso/ but it doesn’t work with the Enfold theme.
Best
Michele
Hi LaNeraNura!
Thank you for using Enfold.
We never encountered the term “useso” before. What is it exactly?
EDIT: Maybe, you can edit framework > php > class-style-generator.php, look for this code around line 369:
$this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
Replace it with:
$this->extra_output .= "<link rel='stylesheet' id='avia-google-webfont' href='//fonts.useso.com/css?family=".apply_filters('avf_google_fontlist', $this->google_fontlist)."' type='text/css' media='all'/> \n";
Regards,
Ismael
Hi Ismael,
thanks this works!
You can find more information about the topic here: http://chineseseoshifu.com/blog/google-fonts-instable-in-china.html
You can close this thread.
Best
Michele