WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This site is part of a Wordpress Network.

In the theme's CSS, I'd like to reference some font files using @font-face. The fonts live in the theme's directory.

If I use a path like this:


, the file is not found.

The true path is


, but using this path in the CSS does not work (see this answer).

So, I have the problem of the true path not working in CSS, and the Wordpress network path not being found.

share|improve this question
up vote 0 down vote accepted

It is a googd practice to write references to files from CSS file using relative path to the theme and not one absolute. So, for instance:

background: transparent url('images/sprite_phone.png') no-repeat 0 0;

Anyway, on your case there is something wrong with the uploaded file, because none of the paths you give above work.

share|improve this answer
The file names had capital letters, while the reference in the CSS file did not. Thanks. – Steve Nov 17 '12 at 2:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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