Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 在customizer中添加自定义字体_Wordpress_Plugins - Fatal编程技术网

Wordpress 在customizer中添加自定义字体

Wordpress 在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

我使用的是奥林巴斯主题(与尤尼森)。我想在customizer的字体列表中添加一些自定义字体。我尝试了所有方法,但我的自定义字体没有出现在列表中。我在主题的主样式文件中定义了字体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;}