Font not working in Chrome / Firefox

Home Forums Use Any Fonts Font not working in Chrome / Firefox

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10418
    Erl
    Guest

    I use Safari on Mac and it seems like the font is working well (mobile and desktop)
    But when I try the site in Chrome or FF on mac, my font (Prime Regular) is replaced by Times New Roman or something like that.

    I see several posts in the forum about the issue, but no solution.

    I have tried uploading the font over again, assign the font to elements over again and even re-installed the plugin.

    On my test server everything works fine: http://prod1.hjelmeweb.no (different site, but same setup)

    Any idea?

    #10420
    Dinesh
    Keymaster

    Hi Erl,

    In your case, your live server is not allowing to load the font due to Cross domain issue.

    Access to Font at ‘http://emobgeiranger.no/wp-content/uploads/useanyfont/180312093141Prime.woff’ from origin ‘http://www.emobgeiranger.no’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.emobgeiranger.no’ is therefore not allowed access.

    It means that, your site is running from emobgeiranger.no without www and font is trying to load from http://www.emobgeiranger.no

    So please keep this in your htaccess file and it should fix your issue.

    <FilesMatch "\.(ttf|otf|eot|woff|css)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>

    Hope this helps.

    Thanks

    #10444
    Stew
    Guest

    I am having this issue too and adding this to .htaccess did not help. What’s strange is that I had no issues in any browsers last night.

    #10445
    Stew
    Guest

    UPDATE: After clearing the website cache it began working. Thanks for the fix!

    #10449
    Stew
    Guest

    Okay, so this fix didn’t last long. Not working again.

    #10457
    Dinesh
    Keymaster

    Hi Stew,

    Still there is CORS issue. If you have placed it in your htaccess file and still not working, please ask your host provider to enabled CORS.

    Thanks

    #10466
    Erl
    Guest

    Thanks Dinesh,

    The .httaccess fix seems to be working:)

    #10472
    Dinesh
    Keymaster

    Great it is working for you.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Font not working in Chrome / Firefox’ is closed to new replies.