Moving from development to production and FA icons are now squares

120 views Asked by At

Development

Production

I've read a ton of other posts, and 99% of them boil down to path issues. But if you look at my site you can see that it is properly loading the icon file:

Request URL:http://www.blackrhinounion.com/wp-content/themes/Centum/font/fontawesome-webfont.woff2?v=4.3.0 Request Method:GET Status Code:304 Not Modified

So I'm thinking something else is the culprit here?

(Edit) Attempted in .htaccess:

# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>

And it still didn't fix it.

1

There are 1 answers

0
Lister On BEST ANSWER

Figured it out.

WP_SITEURL had a www in it, while the WP_HOME didn't. That caused the Cross-Origin issue, removing the www fixed everything.