[Plugin: NextGEN Gallery] show Title alt of image instead
- font size decrease font size increase font size
- Print Email
view/gallery.php.
----------------------------------------------------------------------
In the nextgen plugin dir, edit the file view/gallery.php.
Find the line of code for the anchor (link) around the thumbnail:
<a href="/<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
Replace the title attribute with:
<?php echo $image->alttext ?>
Result:
<a href="/<?php echo $image->imageURL ?>" title="<?php echo $image->alttext ?>" <?php echo $image->thumbcode ?> >
Explanation: The effects like the Shutter box use the anchor title attribute to display text under the image. NextGen defaults this to the description field, but the edit above will replace this default with the alttext field.
Hope that helps!
Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
back to top