wordpress新主题自定义otf字体

我正在尝试将” Aribau Grotesk”字体添加到新主题中, 我有一个包含.otf文件的文件夹, 尝试从style.css中包含它们, 但似乎无法正常工作, 任何建议将不胜感激。

@font-face {
    font-family: 'Aribau Grotesk';
    src: url(/fonts/Aribau_Grotesk/Aribau Grotesk.otf);  
}

body{
    font-family: 'Aribau Grotesk';
    font-weight: normal;
}

#1


使用此网站https://transfonter.org/它使用CSS包括为你创建webfonts

来源:

https://www.srcmini02.com/64408.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41386.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?