给wordpress jupiterx 模板添加字体

给wordpress jupiterx 模板添加字体

今天修改blog,发现没有雅黑字体,全都是英文字体,经过一番查找找到了方法

找到wp-content/themes/jupiterx/lib/api/fonts目录,打开class.php,然后找到system字段,

修改如下

	const SYSTEM_FONTS = [
		'SimSun,"Times New Roman", Times, serif,"MS Sans Serif", Geneva, sans-serif',
		 'PingFangSC,helvetica neue,hiragino sans gb,arial,microsoft yahei ui,microsoft yahei,simsun,sans-serif',
		'Noto Sans SC Sliced, sans-serif',
	    'Helvetica,Pingfang SC, Hiragino Sans GB,Microsoft YaHei, WenQuanYi Micro Hei, sans-serif',
		'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
		'HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, "Lucida Grande", sans-serif',
		'Arial, Helvetica,Microsoft YaHei, sans-serif',
		'Arial Black, Gadget, Microsoft YaHei,sans-serif',
		'Bookman Old Style, Microsoft YaHei,serif',
		'Courier,Microsoft YaHei, monospace',
		'Courier New, Microsoft YaHei,Courier, monospace',
		'Garamond,Microsoft YaHei, serif',
		'Georgia,Microsoft YaHei, serif',
		'Impact, Charcoal, Microsoft YaHei,sans-serif',
		'Lucida Console, Monaco,Microsoft YaHei, monospace',
		'Lucida Grande, Lucida Sans Unicode, Microsoft YaHei,sans-serif',
		'MS Sans Serif, Geneva,Microsoft YaHei, sans-serif',
		'MS Serif, New York,Microsoft YaHei, sans-serif',
		'Palatino Linotype, Book Antiqua, Palatino, serif',
		'Tahoma, Geneva,Microsoft YaHei, sans-serif',
		'Times New Roman, Times,Microsoft YaHei, serif',
		'Trebuchet MS, Helvetica, Microsoft YaHei,sans-serif',
		'Verdana, Geneva, Microsoft YaHei,sans-serif',
		'Comic Sans MS, Microsoft YaHei,cursive',
	];

原文链接:http://www.ae08.com/2020/04/10/%e7%bb%99wordpress-jupiterx-%e6%a8%a1%e6%9d%bf%e6%b7%bb%e5%8a%a0%e5%ad%97%e4%bd%93/,转载请注明出处。
0

评论0

请先
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录