首页 > 解决方案 > 在定制器中添加自定义字体

问题描述

我正在使用 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;}

标签: wordpressplugins

解决方案


推荐阅读