the7主题和revslider插件添加微软雅黑字体

《the7主题和revslider插件添加微软雅黑字体》
注意:添加行的位置会随着主题的更新有些变化。
1,主题添加微软雅黑字体
\wp-content\themes\dt-the7\inc\helpers\options.php
 在  function presscore_options_get_safe_fonts() { function presscore_options_get_safe_fonts() {
                  return apply_filters( ‘presscore_options_get_safe_fonts’, array(下面直接添加。
第384行添加
‘Microsoft YaHei’               => ‘Microsoft YaHei’,
2,幻灯片添加微软雅黑字体
 在 // GOOGLE Loaded Fonts// GOOGLE Loaded Fonts array(‘type’ => ‘websafe’, ‘version’ => __(‘Loaded Google Fonts’, ‘revslider’), ‘label’ => ‘Dont Show Me’),
下面直接添加。
\wp-content\plugins\revslider\includes\operations.class.php
第758行添加
array(‘type’ => ‘websafe’, ‘version’ => __(‘Sans-Serif Fonts’, ‘revslider’), ‘label’ => ‘Microsoft YaHei’),
点赞

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

9 − 3 =