[wp-trac] [WordPress Trac] #41392: Theme styles for Text widget do not apply to Custom HTML widget
WordPress Trac
noreply at wordpress.org
Fri Jul 21 04:27:41 UTC 2017
#41392: Theme styles for Text widget do not apply to Custom HTML widget
--------------------------+-------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8.1
Component: Widgets | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-------------------
In #40907 we introduced a Custom HTML widget that is dedicated for showing
HTML. This was added because the Text widget is now managed by TinyMCE
(#35243) which can undesirably modify custom HTML added by a user. In
#40951 some pointers were added to the Text widget when the user clicked
on the Text tab to edit HTML or when they attempted to paste HTML into the
Visual tab. These pointers direct the user to consider using the Custom
HTML widget for adding arbitrary HTML, HTML which is not general content
like a user may enter for post content, as in the post editor. So it is
expected that users will be placing HTML that they would formerly have
placed in the Text widget to instead place in the Custom HTML widget. A
problem here for styling is that themes are targeting the `.textwidget` to
add the necessary styles for HTML that a user may put into such a widget.
The Custom HTML widget has no such class name, and so it is currently not
getting the proper styles in themes.
To fix this, an element with the same `textwidget` class name needs to be
added as a wrapper around the content in the Custom HTML widget.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41392>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list