Skip to content

Allow to change the default font size in editor. #43522

Answered by t-hamano
ayophanz asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for submitting the issue.
You can change the default font size in the following way:

On Classic Theme

Register a style sheet describing the following style via add_editor_style().

body {
  font-size: 20px;
}

On Block Theme

You can configure this in theme.json.

{
  "version": 2,
  "styles": {
    "typography": {
      "fontSize": "20px"
    }
  }
}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by skorasaurus
Comment options

You must be logged in to vote
2 replies
@t-hamano
Comment options

@Mamaduka
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
[Type] Question Questions about the design or development of the editor.
3 participants
Converted from issue

This discussion was converted from issue #43467 on August 23, 2022 13:29.