WordPress.org

Ready to get started?Download WordPress

Forums

Font directory (5 posts)

  1. Udo Schmitz
    Member
    Posted 3 years ago #

    Can I put the fonts I call via "@font-face" anywhere I want, or is there a best practice with WordPress?

  2. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    There is a plugin here, http://blogs.sitepoint.com/the-fontface-jquery-plugin/ that might be what you need.

  3. Udo Schmitz
    Member
    Posted 3 years ago #

    Thanks, but I don't have any problem with "@font-face". I just wanted to know, if there's a preferred directory.

  4. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

    I would put them in a directory called fonts as an example from w3c.
    Seems like closer to the root is better.

    @font-face {
      font-family: Gentium;
      src: url(http://example.com/fonts/Gentium.ttf);
    }
  5. Udo Schmitz
    Member
    Posted 3 years ago #

    OK, that's what I did.

    Seems like closer to the root is better.

    Interesting, I didn't know that.

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic