• Resolved chucknb28409

    (@chucknb28409)


    Hi,

    When I enable CDN it breaks font-awesome and my custom fonts in Firefox. When the CDN is disabled it works great for all browsers. I checked the htaccess and it contains the code required for firefox

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

    This only happens in firefox. I also made sure the theme file types to be uploaded include all the font type extensions used. Also my font face markup in the child theme is the following:

    @font-face{
    	font-family: 'Sofachrome';
    	src: local('sofachromergit'),
    		url("font/sofachromergit.woff") format('woff'),
    		url("font/sofachromergit.ttf") format('truetype');
    }

    Thanks

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chucknb28409

    (@chucknb28409)

    Never mind I figured it out. I had both ‘Host theme files’ and ‘Host wp-includes/ files’ boxes checked in the CDN settings and this screwed it up…

    Don’t you want to host both includes and theme files? Why would that work. My Font Awesome folder is in my theme files but I also want the core files uploaded.

    Can you explain further?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling CDN breaks font-awesome in Firefox, despite correct htaccess’ is closed to new replies.