In certain scenarios (in particular, mine!), it is not possible to hide the caption display. I.e., I am using image.module gallery with automatic image handling. The caption is picked up from the image title (which is a required field for image.module, so can't be simply left blank), and is inserted by the Javascript. Attempts to hide the caption using CSS are overridden by the Javascript, which sets style="display: inline" on the caption element.

There are options to turn off the display of most parts of the lightbox in the admin UI, along the lines of 'text to display for XXX (leave blank to hide)'. But there is no option for the caption.

Patch to follow.

CommentFileSizeAuthor
#1 lightbox2-653166-1.patch3.97 KBmalclocke
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

malclocke’s picture

Status: Active » Patch (to be ported)
FileSize
3.97 KB

Attached patch adds a checkbox 'Show caption' to the admin UI and modifies the JS accordingly.

stella’s picture

Status: Patch (to be ported) » Fixed

committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.