[Plugin: NextGEN Gallery] Image Description being used as Title and Caption
-
I’m having some issues with how NextGEN handles image descriptions, captions and titles.
Titles and captions are generally considered to be short, descriptions long. In gallery-caption.php NextGEN puts the image description into the href title atribute field. The ‘caption’ variable in gallery-caption.php also appears to be set to ‘description’ but thats done somewhere externally. Sticking a big field into ones that are expected to be small gives some interesting results. Given my third issue below is outstanding it seems this occurs in other NextGEN module/s as well.
I think i”ve fixed my two webpage problems with gallery-caption.php (hopefully not causing any knockon effects). My page source issue is unresolved – any thoughts anyone??
Issue 1: The href title attribute = image description. On my gallery thumbnail pages my long image descriptions including their html syntax were visible when hovering the mouse near the thumbnals. Replacing ‘description’ with ‘alttext’ in gallery-caption.php seems to have fixed this.
Issue 2: When using shortcode
[nggallery id=x template=caption]
because variable ‘caption’ contains the image description my thumbnail captions spanned about 10 lines ruining my thumbnail page layout. Replacing ‘caption’ with ‘alttext’ in gallery-caption.php and styling the formatting a bit seems to have fixed this.Issue 3: Using view page source shows very long href titles so Issue 1 above exists in some other modules. The example below is from the just 1 of the 10 thumbnails in the NextGEN widget that displays recent gallery additions. Unresolved.
You probably won’t have any of these problems if your image descriptions are short.
Snippet from https://japaneseartsgallery.com view page source showing what happens because of the href title attribute being set to an images description!
<h3 class="entry-title dbx-handle plain">Recent Additions</h3> <div class="ngg-widget entry-content"> <a href="https://japaneseartsgallery.com/wp-content/gallery/toshi-yoshida/toshi-yoshida-the-friendly-garden-triptych.jpg" title="<body> <table style="text-align: left; width: 500px;" border="0" cellpadding="5" cellspacing="2"> <tbody> <tr> <td style="text-align: right;">Artist:</td> <td>Toshi Yoshida (1911-1995) </td> </tr> <tr> <td style="text-align: right;">Title:</td> <td>The Friendly Garden Triptych</td> </tr> <tr> <td style="text-align: right;">Date:</td> <td>1980<br> </td> </tr> <tr> <td style="text-align: right; vertical-align: top;">Edition:</td> <td>"The Friendly Garden" Triptych - Commissioned by the Franklin Mint. Pencil-signed (in Japanese "kanji") signature reads "Yoshida Toshi."</td> </tr> <tr> <td style="text-align: right;">Publisher:</td> <td>Yoshida Studio </td> </tr> <tr> <td style="text-align: right;">Printer:</td> <td>Yoshida Studio </td> </tr> <tr> <td style="text-align: right;">Carver:</td> <td>Yoshida Studio</td> </tr> <tr> <td style="text-align: right; vertical-align: top;">Description:</td> <td>Triptych of oversize (approx 10 inches x 19 inches) prints produced in the Toshi Yoshida studio in Japan. The prints are titled Pine Tree, Bamboo Tree and Plum Tree.<br> </td> </tr> <tr> <td style="text-align: right;"></td> <td></td> </tr> </tbody> </table> <br> <br> <br> </body>" ><img src="https://japaneseartsgallery.com/wp-content/gallery/toshi-yoshida/thumbs/thumbs_toshi-yoshida-the-friendly-garden-triptych.jpg" width="89" height="60" title="Toshi Yoshida - The Friendly Garden Triptych" alt="Toshi Yoshida - The Friendly Garden Triptych" /></a>
- The topic ‘[Plugin: NextGEN Gallery] Image Description being used as Title and Caption’ is closed to new replies.