• hi people. when i click on thumbnails the image appears on shutter effect. how i can show the ‘alt / title’ of image bellow this image and when the mouse overs?
    is like to show Title of image instead “(5/15)” and “Click to close” on shutter effect. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marujobhz

    (@marujobhz)

    i want to show the ‘Alt & Title Text’ in the place of ‘Descritption’, when images zooming. because if not i must do it by hands for a lot of images… a hard work. any idea?

    The only way I know how to do this is to edit the plugin files (which will require making the change again each time you upgrade it). Here’s what I did:

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] show Title of image instead ” ( 5/15 ) ” and “Click to close” on shutter e’ is closed to new replies.