Support » Fixing WordPress » How to change editor font family?

  • I have this css appearing on editor input and title

    html :where(.editor-styles-wrapper) {
        font-family: serif;
        font-size: medium;
        line-height: normal;
        color: initial;
        background: #fff;
    }

    This code overrides body and makes input look horrible,

    I am using this theme: https://wordpress.org/support/theme/enjoygrid/
    I can’t get help there, they did not even answered on my question I asked 7. months ago.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    If you are comfortable sharing the site URL, can you please help us with that?

    Also when you say Editor font family is it the Wp-admin, Page Editor?

    Can you please help us understand better, so we can try to find the solution to this problem?

    Thank you!

    Try looking at the theme.json file. It allows you to customize the editor and blocks to your needs. You can add both global and block-level values. The two areas you will probably want to look at are Settings and Styles. Settings allow you to change the values for blocks. You can specify what font family to use here but they seem to only create a preset at this point in time. My understanding is that originally it created a selection control to select the font family you wanted to use for a specific block. But, the option was disabled to make repairs to it. I found some tutorials and documents that point refer to it but it doesn’t seem to work. I think you have to create a preset for the font family in the settings section and set it in the style section of theme.json to get it to work. Try looking at the theme.json in the WordPress developer section.

    • This reply was modified 2 months, 1 week ago by mrtom414.
    Thread Starter mllapan

    (@mllapan)

    Guys, thank you for the answers.
    I investigated a bit and tried different codes of adding custom editor css.
    Many of them did not overide that css, but finally I found one which does, so I solved it.

    I like to use those lightweight themes and customizing them, they are better than ones that bloat site with unecessary stuff, but they give some problema like this one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.