Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21530 closed defect (bug) (fixed)

Twenty Twelve: Wrong alignment of image captions on attachment pages

Reported by: obenland's profile obenland Owned by: lancewillett's profile lancewillett
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:


When in attachment view, styles to center the image caption get overridden by .entry-content p styles, which aligns the caption left.

Attachments (1)

21530.diff (480 bytes) - added by obenland 12 years ago.

Download all attachments as: .zip

Change History (4)

12 years ago

#1 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.5

#2 @lancewillett
12 years ago

Thanks for the report, patch isn't exactly right since the container needs to have the alignment also, to center images that aren't full width.

The fix adds a new rule just for the paragraph element, forcing it to be centered.

#3 @lancewillett
12 years ago

  • Owner set to lancewillett
  • Resolution set to fixed
  • Status changed from new to closed

In [21518]:

Twenty Twelve: fix centering of image captions on image attachment view. Fixes #21530.

Note: See TracTickets for help on using tickets.