Do I need to implement an editor-specific stylesheet for the WordPress WYSIWYG? In doing so will this eliminate style conflicts that I am currently experiencing?I am have not implemented an editor stylesheet so I am noticing that it is becoming very difficult to separate surrounding website styles and editor styles. What's the best way to implement this?
The WordPress editor shouldn't be pulling in the themes CSS files unless you have a file that is named
Another way to do it is to use
If your theme is incorrectly registering or enqueueing a script it can cause the files to be loaded into the WordPress admin area. Let me know what your theme is using for the editor stylesheet if this doesn't help so I can give you better assistance.
Adding a callback for custom TinyMCE editor stylesheet in your theme is a good (standard) way to implement an editor-specific stylesheet in WordPress. This is how it's done:
This function is ONLY for in-theme stylesheets, in the sense: