gallery image caption links in twentytwelve theme
-
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
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘gallery image caption links in twentytwelve theme’ is closed to new replies.