[wp-trac] [WordPress Trac] #28997: Adding additional classes to image captions via UI
WordPress Trac
noreply at wordpress.org
Wed Feb 4 04:40:32 UTC 2015
#28997: Adding additional classes to image captions via UI
--------------------------+------------------------------
Reporter: jpswade | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.9.1
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
--------------------------+------------------------------
Changes (by joemcgill):
* keywords: => 2nd-opinion
Comment:
Replying to [comment:1 jpswade]:
At the risk of sounding redundant to the comments on #25295, the result
you're looking for can be accomplished by adding a class to the image and
using a CSS adjacent selector in your stylesheet to style captions based
on the image class. So, for example, if you were to add a `.red-caption`
class to the image, you could style the caption like this:
{{{
.red-text + .wp-caption-text { color: red; }
}}}
As many have suggested on the other ticket, I'm not sure it's worth adding
extra UI for this particular case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28997#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list