WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] gallery image caption links in twentytwelve theme (3 posts)

  1. bradvin
    Member
    Posted 1 year ago #

    When inserting a gallery into a page with image captions that contain anchor tags, the twentytwelve CSS has a rule that sets the links to be display:block which wraps them to the next line,

    adding the following simple CSS fixes the issue

    .gallery-caption a {
    display: inline;
    }

    Steps to reproduce:

    1) Create a new page
    2) Click media manager and upload 2 images
    3) Give the one image a caption of 'test caption with a link'
    4) Insert a gallery into the page
    5) Publish the page and view it
    6) You will notice in the caption that the link is wrapped to the next line

  2. Good catch! Created a Trac ticket: #22227.

  3. Lance Willett
    Themer
    Posted 1 year ago #

    Thanks for the report, this is fixed in trunk now — it'll be pushed out in next Extend theme release (probably later this month).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.