WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » Display Alt & Title text / Description

Display Alt & Title text / Description

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi. Did anyone find an answer for this? I took a lot of time writing all of those titles for each photo, but they aren’t displaying. Please help me!
    Thanks, Gabriana

    Hi there. I am wanting, I think, a similar thing. I want the title to appear with the thumbnail, as in the case of a gallery with teacher names. Is there a way to accomplish this?

    Hi, Maybe this will help someone. I found out how to put a title under the thumbnails with this post.

    http://wordpress.org/support/topic/plugin-nextgen-gallery-title-under-thumbs?replies=12

    Good luck everyone 🙂

    If you go to the plugin folder nextgen-gallery/view/gallery.php

    Step 1: Find the code:
    _________________________________________________________

    <!-- Thumbnails -->
    	<?php foreach ( $images as $image ) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
    		<div class="ngg-gallery-thumbnail" >
    			<a>imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    				<?php } ?>
    			</a>
    		</div>
    	</div>

    ___________________________________________________________
    Step 2: Replace above code this the following code

    <!-- Thumbnails -->
    	<?php foreach ( $images as $image ) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
    		<div class="ngg-gallery-thumbnail" >
    			<a>imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo $image->description ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    				<?php } ?>
    			</a>
    			<span><?php echo $image->alttext ?></span>
                <span><?php echo $image->description ?></span>
    		</div>
    	</div>

    ______________________________________________________________

    Note:
    This is the code to add the description
    <?php echo $image->description ?>

    This is the code to add the title
    <?php echo $image->alttext ?>

    Hi
    I used this post also to display title and description under the thumbnail og nextGen gallery, now i need to make one of them a link
    can anybody help me out of this? please?
    Thanks a lot

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display Alt & Title text / Description’ is closed to new replies.
Skip to toolbar