WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Next Gen Upgrade ~ Descrips disappeared (3 posts)

  1. hazelbug
    Member
    Posted 5 years ago #

    I just upgraded my Next Gen Gallery to the latest version and all my gallery descriptions that were below my images are now gone.

    Here is my site
    http://www.jkltd.com/newsite/oriental-rugs/2x3-rugs/

    Any idea where I activate these? Or solve this?

    Thanks in advance.

  2. hazelbug
    Member
    Posted 5 years ago #

    I found this, but I can't find the code in the file where it says it's supposed to be (I assume "gallery.php" is now "nggallery.php", etc)... Looked through all the files and don't see the proper code I am supposed to edit....

    Help! Thanks!

  3. hazelbug
    Member
    Posted 5 years ago #

    Found the file to edit.
    It is under the "View" folder > gallery.php

    Added

    <?php echo $image->description ?>
    	</div>

    at the end of

    <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
    		<div class="ngg-gallery-thumbnail" >
    			<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    			</a>
    		</div>

    and now I have to restyle the descriptions. I wish the upgrade didn't overwrite all of this that I worked so hard to set up already... but glad to have figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic