Why is the visual editor in WordPress is limiting the width by wrapping the content?
I found this behavior in the editor at least annoying, it does prevent me from using my screen real estate.
Why is the visual editor in WordPress is limiting the width by wrapping the content?
I found this behavior in the editor at least annoying, it does prevent me from using my screen real estate.
You must be logged in to post a comment.
Hazarding a guess at what you really mean, I suppose you mean something like this is happening:
If that is what you’re referring to, that’s because your theme has an
editor-style.css
stylesheet that’s getting used in the visual editor. Somewhere inside that stylesheet is something like this:Removing that or modifying the
max-width
value will let you customize that. The other option is to remove the stylesheet altogether. To do that, find this line of code in your theme (probably infunctions.php
):and remove it.
If this was not at all your problem, I apologize and would love some clarification.
EDIT
Since it looks like WordPress loads your stylesheet before it loads the template stylesheet, there are two ways to override styles. First (and easiest): make your style important:
To stop the editor from loading the parent styles at all, you could add this to your theme’s functions.php file:
Then in your child theme, use
custom-editor-style.css
as your child theme’s editor stylesheet instead ofeditor-style.css
.Please note, this last part of the answer would not be the best solution for everybody. I’m only offering it because I know that you are using a child theme using twentyten as the template.