I’ve set Arial as the font for content in Enfold settings, but the headings only have non-web safe fonts as options. Is there any way to set it to Arial? I’m trying to stop Enfold from loading external font files to speed up the site.
Site in question is: http://www.severnedgevets.co.uk
Hi scottybowl!
The files are small so I don’t really think this is going to speed up your site and if there is actually a speed increase then it’s going to be so small that it’s not noticeable.
If you still want to though then try commenting out line 369 in /enfold/framework/php/class-style-generator.php.
//$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";
Best regards,
Elliott
Well, the real reason I’m trying to go web safe is that we’re getting strange errors with .woff files that we can’t seem to fix:
"NetworkError: 403 Forbidden: header 'Content-Type' value denied - http://fonts.gstatic.com/s/bitter/v7/SHIcXhdd5RknatSgOzyEkA.woff"
SHIcXhd...kA.woff
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://fonts.gstatic.com/s/bitter/v7/SHIcXhdd5RknatSgOzyEkA.woff. This can be fixed by moving the resource to the same domain or enabling CORS.
If you know of a solution, that would be great, otherwise I’d be happy to just disable woff files if you know how to do that.
Thanks!
Hey!
I’m not familiar with that error or CORS. It looks like you might be able to fix it by adding the first line on this page to your .htaccess file, http://enable-cors.org/server_apache.html.
Be sure to deactivate all plugins while testing.
Best regards,
Elliott