You are here:Home»KB»Applications»Firefox»Font Awesome Icons not displaying in Firefox
Tuesday, 06 October 2015 16:28

Font Awesome Icons not displaying in Firefox

Written by

When using Firefox to browse the internet occasionally you come across websites where Font Awesome icons do not display but are fine when viewed in another browser. This seems to be caused by a couple of things.

  • using relative URLs
  • When that website is using a CDN
  • You are running an add blocker
  • possibly other things

The Fix

There are a few solutions and are quite easy. Not all might be suitable.

  • Use absolute URLs - This might be an issue but i would never use absolute URLs so i would recommend other solutions where possible
  • Add the following code to your server's .htaccess file
    <FilesMatch "\.(ttf|otf|eot|woff)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>
  • Disable any Adblocker or similiar addons

Links

Read 1128 times Last modified on Tuesday, 06 October 2015 16:46