The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other CSS-Tricks Bug

  • This topic is empty.
Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
  • #134345

    I had the same issue with my blog, and my custom fonts weren’t showing. The cause was that my WordPress install was not located in the root folder of my site, and the fact that there was a difference between the WordPress Address (URL) and the Site Address (URL) in the general settings. I fixed it by using the full path to the custom font files, including the http and domain and all that.

    Not sure if that’s also what’s happening here of course (though I do believe Chris is also a supporter of not having the WordPress in the root).

    Chris Coyier

    I’m on the case! It’s pretty complicated actually, because of some new nginx caching going on on the site, amongst other things. They SHOULD work from the CDN, but either Firefox started not allowing cross-origin fonts depite the headers, or my headers are wrong. And my headers SEEM to be right, but it’s hard to know because of the nginx stuff. I would just yank them off the CDN, but even that seems to be problematic in W3 Total Cache (not respecting my rejected files list). And I don’t want to turn off the CDN completely because that would be an even worse problem =).

    Anyway, quite the cat and mouse chase here. Thanks for all the information. I’ll get it sorted out soon.


    Is there a difference between the forums and the rest of the page?

    Because I can see the icons in FF21 on http and https in the forums but nowhere else.


    @dgriesel I think that there may be some difference because when I copy the inner HTML of the <head> tag on the Forums page and replace the inner HTML of the <head> tag on the Home page with the copied one the fonts seem to be working fine.

    Chris Coyier

    Yah there is a difference. The WordPress side uses the CDN and the forums do not, which is the crux of the issue.

    Chris Coyier

    This should be fixed in kind of a temporary way. The CSS and fonts just aren’t using the CDN now. Not ideal, but better than broken fonts.

Viewing 6 posts - 16 through 21 (of 21 total)
  • The forum ‘Other’ is closed to new topics and replies.