워드프레스 편집기에서 한글 폰트가 너무 못생겨서 ChatGPT의 도움을 받아서 바꿨다.
Noto Sans KR 폰트로 바뀐 편집기 화면을 보니 글쓰는 맛이 한결 좋아졌다.
방법은 다음과 같다.
1. Theme 폴더로 이동
$ cd /var/www/wordpress/wp-content/themes/twentyfifteen
2. functions.php 파일에 코드 추가
add_theme_support('editor-styles');
add_editor_style('editor-style.css');
3. editor-style.css 파일 생성
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
body {
font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
}