WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] show Title of image instead " ( 5/15 ) " and "Click to close" on shutter e (3 posts)

  1. marujobhz
    Member
    Posted 4 years ago #

    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!

  2. marujobhz
    Member
    Posted 4 years ago #

    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?

  3. AndyBiblio
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic