我正在使用@ font-face功能在我的Wordpress站点上使用自定义字体(Geosanslight)。@ font-face在Wordpress站点上不能正常工作
我已经使用http://www.fontsquirrel.com下载了webkit,并将它们上传到文件夹http://www.lynnepassmore.com/public_html/wp-content/themes/esteem/fonts。
我在自定义css文件中使用@ font-face函数来调用它们。但是,字体在任何浏览器上都不可见。
这里是我的@字体面CSS:
@font-face {
font-family: 'geosanslight';
src: url('../fonts/geosanslight-webfont.eot');
src: url('../fonts/geosanslight-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/geosanslight-webfont.woff2') format('woff2'),
url('../fonts/geosanslight-webfont.woff') format('woff'),
url('../fonts/geosanslight-webfont.ttf') format('truetype'),
url('../fonts/geosanslight-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
body, h1, h2, h3, h4, h5, h6, p, li, a {
font-family: geosanslight !important;
}
你在哪里添加了@ @ font-face CSS? – George
嗨Zaq你有一个链接到您的网站您的字体路径是probrobly错误 – DCdaz
到主题选项下的自定义CSS文件 –