편집기 내 폰트 모양과 실제 사이트에 보여지는 폰트가 다를 경우, 디자인적인 차이가 발생할 수 있다. 이를 위해 편집기 내 폰트를 변경하는 방법
테마의 functions.php 파일을 열어 아래 코드를 추가
add_action('admin_head-post.php', 'wpdb_fix_html_editor_font'); add_action('admin_head-post-new.php', 'wpdb_fix_html_editor_font'); function wpdb_fix_html_editor_font() { ?> <style type="text/css"> #editorcontainer #content, #wp_mce_fullscreen, .wp-editor-area { font-family: Verdana,Arial,sans-serif!important; } </style><?php }
font-family 부분에서 원하는 폰트를 지정하면 OK