[wp-trac] [WordPress Trac] #17044: div.wp-caption shortcode should have width of img, rather than add +10px

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 27 19:12:39 UTC 2012


#17044: div.wp-caption shortcode should have width of img, rather than add +10px
-------------------------------+------------------------------
 Reporter:  mgk25              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Shortcodes         |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |
-------------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:11 nacin]:
 > I would like to try to remove it outright...

 Don't think that would be possible. In Twenty Eleven:

 [[Image(caption-width.png)]]

 A lot of (most?) themes have adapted the captions styling to include the
 10px. Not sure having a filter for it would be good either. Perhaps
 another add_theme_support?

 {{{
 add_theme_support( array('expanded-captions-width' => 0) );
 }}}


 Replying to [comment:13 grahamarmfield]:
 > ... it's always easier to style something that doesn't have inline
 styles already added.

 Agreed. How would you style a centered caption in lets say Twenty Eleven
 without the inline width?

 [[Image(no-width-caption.png)]]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list