Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

http://brinkley.doig.com.au/wp-content/themes/brinkley/myriadpro-boldcond.ttf

, the file is not found.

The true path is

http://www.doig.com.au/wp-content/themes/brinkley/myriadpro-boldcond.ttf

, 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.