WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#22227 closed defect (bug) (fixed)

Twenty Twelve: links in gallery captions wrap to next line

Reported by: DrewAPicture Owned by: lancewillett
Priority: normal Milestone: 3.5
Component: Bundled Theme Version: 3.5
Severity: normal Keywords: has-patch
Cc:

Description

From this forum thread: http://wordpress.org/support/topic/gallery-image-caption-links-in-twentytwelve-theme?replies=1

In galleries, links in captions are inheriting display:block from .gallery-item a {}, forcing text to the next line. Attached patch adds .gallery-caption a {}. Props @bradvin for the fix

Patch attached.

Attachments (2)

22227.diff (409 bytes) - added by DrewAPicture 8 months ago.
22227.2.diff (535 bytes) - added by DrewAPicture 8 months ago.
Caption same width as anchored image.

Download all attachments as: .zip

Change History (6)

DrewAPicture8 months ago

DrewAPicture8 months ago

Caption same width as anchored image.

comment:2 DrewAPicture8 months ago

22227.2.diff also accounts for the caption overflowing the width of the image in first "after" screenshot in comment 1.

New after: http://cl.ly/image/3o3h2n1R1D1s

comment:3 lancewillett8 months ago

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

In [22294]:

Twenty Twelve: fix style for links in gallery captions wrapping to next line, props DrewAPicture. Fixes #22227.

comment:4 ocean908 months ago

  • Milestone changed from Awaiting Review to 3.5
Note: See TracTickets for help on using tickets.