WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] @font-face issues (2 posts)

  1. caseyr28
    Member
    Posted 3 years ago #

    IM having trouble getting my webfonts to show up on my WP site. Can someone tell me what Im missing?

    I've st up the font-face declaration in my main css:

    @font-face {font-family: 'MuseoSlab-100';src: url('webfonts/eot/style_183112.eot');src: url('webfonts/eot/style_183112.eot?#iefix') format('embedded-opentype'),url('webfonts/woff/style_183112.woff') format('woff'),url('webfonts/ttf/style_183112.ttf') format('truetype'),url('webfonts/svg/style_183112.svg#MuseoSlab-100') format('svg');
     font-weight: normal;
     font-style:normal;
     }

    and applied it:
    h1, h2, h3 { font-family: "MuseoSlab-100"; font-weight: normal; }

    Seems the paths to the files are correct in my directory, so Im lost.

  2. The_liz
    Member
    Posted 2 years ago #

    One thing is, if the fonts are in your website root, and you're calling them from the stylesheet in your theme, then the relative link to them is actually
    src: url("../../../fonts/My-webfont.eot"); etc.

Topic Closed

This topic has been closed to new replies.

About this Topic