I have a multi site installation consisting of the main domain and various subdomans.

The domain and subdomain all use the one theme however the icon font of the theme doesn't display/load an any of the subdomains.

Why are subdomains of my multi-site network failing?

  • 1
    Have a look at the url to the font that is being displayed in your code. It might be that not the full url is being used – yobddigi Dec 20 '15 at 21:07
  • @YobdDigital The full URL is not being used. Just the the file name. – Clarus Dignus Dec 20 '15 at 21:43
  • @YobdDigital I edited the paths as full paths but it didn't work. – Clarus Dignus Dec 20 '15 at 21:49
  • 1
    Could you provide a link to both sites? – yobddigi Dec 20 '15 at 22:22
  • @YobdDigital Thanks for your willingness to review the matter however it turns out the root of the issue was my CORS policy (see my answer below). – Clarus Dignus Dec 21 '15 at 0:22

The problem:

Console log:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at xxx. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

The solution:

Add the following header to your .htaccess file:

# https://wordpress.org/support/topic/font-awesome-not-working?replies=8#post-4921179
# Allow icon font to load on subdomains of WordPress multisite install.

<FilesMatch ".(ttf|otf|woff)$">
    Header set Access-Control-Allow-Origin "*"


# END WordPress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.