Wordpress 在customizer中添加自定义字体
我使用的是奥林巴斯主题(与尤尼森)。我想在customizer的字体列表中添加一些自定义字体。我尝试了所有方法,但我的自定义字体没有出现在列表中。我在主题的主样式文件中定义了字体eot、woff和eot文件 只有在下拉列表中添加字体名称才是目标。字体是Vazir和YekanWordpress 在customizer中添加自定义字体,wordpress,plugins,Wordpress,Plugins,我使用的是奥林巴斯主题(与尤尼森)。我想在customizer的字体列表中添加一些自定义字体。我尝试了所有方法,但我的自定义字体没有出现在列表中。我在主题的主样式文件中定义了字体eot、woff和eot文件 只有在下拉列表中添加字体名称才是目标。字体是Vazir和Yekan @font-face { font-family: Vazir; src: url('../fonts/Vazir.eot'); src: url('../fonts/Vazir.eot?#iefix') format('e
@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;}