我爱水煮鱼 » WordPress » WordPress 技巧:如何修改后台编辑框的字体

WordPress 技巧:如何修改后台编辑框的字体

在当前主题添加如下代码:

function change_editor_font(){
        echo "<style type='text/css'>
#editorcontainer textarea#content {
  font-family: \"宋体\",arial;
  font-size:14px;
  color:#333;
}
</style>";
}
add_action("admin_print_styles", "change_editor_font");

标签:

分享到:

请选择你看完该文章的感受:

不错 超赞 无聊 扯谈 不解 路过