wordpress - 在定制器中添加自定义字体
问题描述
我正在使用 Olympus 主题(使用 Unyson)。我想在定制器的字体列表中添加一些自定义字体。我尝试了所有方法,但我的自定义字体没有出现在列表中。我在主题的主样式文件中定义了字体 eot、woff 和 eot 文件。
只有在下拉列表中添加字体名称才是目标。字体为 Vazir 和 Yekan。
@font-face {
font-family: Vazir;
src: url('../fonts/Vazir.eot');
src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
url('../fonts/Vazir.woff') format('woff'),
url('../fonts/Vazir.ttf') format('truetype');
font-weight: normal;}
@font-face {
font-family: Yekan;
src: url('../fonts/Yekan.eot');
src: url('../fonts/Yekan.eot?#iefix') format('embedded-opentype'),
url('../fonts/Yekan.woff') format('woff'),
url('../fonts/Yekan.ttf') format('truetype');
font-weight: normal;}
解决方案
推荐阅读
- javascript - ByteBuffer: readIString 抛出非法偏移错误
- javascript - 如何使用 jquery 或 javascript DOM 在 td 内的复选框中检查和未检查检测?
- javascript - 与 useEffect 一起使用时如何防止 useCallback 触发(并遵守 eslint-plugin-react-hooks)?
- css - css min() 与 android firefox 和 opera 不兼容,替代方案?
- python - Pyro4 [Errno -2]
- node.js - 在 Node.JS 中使用 AWS.config.update 设置凭证
- python - Django:注释过滤的反向关系
- java - Jpype导入在jar中找不到模块
- python - 基于布尔 np.array 有效地对 np.matrix 进行子集,但仅在某些阈值之前
- python - 本地颁发者证书错误在 docker 中唯一地使用 python