0

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.

0

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.

  • 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 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.