[wp-trac] [WordPress Trac] #14430: editor-style.css of a child theme overriden by parent theme
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 27 13:36:00 UTC 2010
#14430: editor-style.css of a child theme overriden by parent theme
--------------------------+-------------------------------------------------
Reporter: helix84 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Although it's possible to customize the look of the editor window (see
<http://codex.wordpress.org/Function_Reference/add_editor_style>), the
child's style is included before the parent's style, so the parent's
styles will override child's styles.
E.g.:
childs-editor-style.css:
h1 { color:red }
parents-editor-style.css:
h1 { color:blue }
result: h1 in post editor will have blue color
The solution is to change the order of styles. Patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14430>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list