Blogs about Drupal Modules

Getting alt text to display without a caption using img_assist

Published on the 4th September, 2007

I ran into a spot of trouble recently with img_assist, in that it only displayed alt text if there was also a caption below the image. Img_Assist takes the alt text from a combination of the title and description, and these fields are filled by default from the title and body of the image node. Although there is no real need for a caption below each image, you will almost always need alt text. The problem was that Drupal wasn't wrapping the caption in a span, which meant no easy way of hiding i...

Read more...
Divider