[wp-trac] [WordPress Trac] #25295: Adding additional classes to image captions

WordPress Trac noreply at wordpress.org
Thu Jan 30 22:36:31 UTC 2014


#25295: Adding additional classes to image captions
-------------------------------------------------+-------------------------
 Reporter:  jpswade                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Editor                               |  Review
 Severity:  normal                               |     Version:  3.6.1
 Keywords:  image caption classes needs-patch    |  Resolution:
  2nd-opinion                                    |     Focuses:  ui
-------------------------------------------------+-------------------------

Comment (by aubreypwd):

 >Why can't this be handled using pure CSS and the existing classes and ids
 - such as:
 >#attachment_1628 .wp-caption-text {
 >color:red;
 >}

 -----

 @esmi, my case also involves adding a class `.aligntop` to my captioned
 image and it won't add the class when I save. I want to, specifically,
 override the `margin: 10px 10px 10px 10px;` to `margin: 0px 10px 10px
 10px;` so that images on the top of a page doesn't have a top-margin.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25295#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list