Support » Themes and Templates » @font-face issues

  • Resolved caseyr28


    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;

    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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘@font-face issues’ is closed to new replies.