• Resolved saraneve

    (@saraneve)


    Hello,
    I would like to know if it is possible to make the width of the Classic Editor the same width as the theme.

    As you can see in the image I attached, now the Classic Editor is at full width and I would like to make it the same width as the theme.

    Thank you for your attention.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Hi!

    I don’t think I’ve ever seen the classic editor not being full width – have you? I don’t think I have a solution for what you want. Different screens will show different width for the editor.

    The only option I have in the theme is:
    Customize > Theme Options > Styling > Content Max-width

    But that does not affect the classic editor, but the theme’s content width.

    Other than resizing your own browser window when editing, I don’t have a solution.

    Thread Starter saraneve

    (@saraneve)

    The image that I attached before (the editor with the theme’s width) refers to one of my blogs with a theme that imposes the width to the editor.

    Some themes (like Chaplin, Twenty Twenty, Twenty Sixteen and more, for example) do it.

    For this reason I asked, because I know it is possible to do it.

    Thanks the same for your availability.

    Thread Starter saraneve

    (@saraneve)

    I found the solution myself ??.

    Just create an editor-style.css file with the code:

    body {
    	max-width: 740px;
    }

    and add a string to the functions.php file:

    add_editor_style( array( 'editor-style.css' ) );

    I share the solution for all interested people.

    Theme Author Alexander Agnarson

    (@alxmedia)

    Awesome, thanks for sharing! I had no idea about that one.

    Thread Starter saraneve

    (@saraneve)

    Is a way to contribute!

    @saraneve Awesome tip. I followed your instructions but did not work for me. To be clear, i upload the editor-style.css file to my theme child directory right? And it’s when we’re “editing” a page that we want to see the page width match the theme right? (your screenshot link no longer works)>

    WordPress Version 6.1.1
    Classic editor Version 1.6.2?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Classic Editor width’ is closed to new replies.