Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #365271

    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

    #365732

    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

    #365911

    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!

    #366206

    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

    • This reply was modified 10 years ago by Elliott.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.