When you have a bit longer caption, the caption does not break a line at the end of the image container. I do not see a width attribute for the display that I could re-use to define a style:width on a surrounding container for singlepic.php
This fix would potentially also resolve the issue, that the whole row, where a small image is displayed, is clickable for magnification, not only the image itself.
What are your thoughts Alex?
Thanks!
My current "hack" in singlepic.php
...
<?php $width = $image->width ? "max-width:" . ($image->width + 10) . "px":""; ?>
<div style="<?php echo $width ?>">
<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->linktitle ?>" <?php echo $image->thumbcode ?> >
<img class="<?php echo $image->classname ?>" src="<?php echo $image->thumbnailURL ?>" alt="<?php echo $image->alttext ?>" title="<?php echo $image->alttext ?>" />
</a><!-- singlepic.php -->
<?php /*var_dump($image);*/ if($image->alttext) : ?>
<span class="ngg-caption"><?php echo $image->alttext .$image->width ?></span>
<?php include(WP_PLUGIN_DIR ."/CSCOverrider/includes/nextgen-gallery/csc_exif_info.php"); ?>
<?php endif; ?>
</div>
...
Hope this helps
Odd! WP claims I have startet this post a week ago.....that was MANY weeks ago......
Alex, any style upgrade to be expected ?
Could you show the link to a tutorial to add my own templates ?
Thanks