Getting alt text to display without a caption using img_assist

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 it without digging into the module code. This is the HTML output: 1 2 <img class="image _original" width="200" height="75" title="Sunset" alt="Sunset" src="http://example.com/files/images/sunset.jpg"/> <strong>Sunset</strong> ...

4 September, 2007