• Resolved beckhamlkc

    (@beckhamlkc)


    Hello,

    I would like to know if anyone could figure out how to link a thumnail image in a gallery to a page/post?

    instead of displaying the lightbox/shutter effect (full size image) whenm clicking on 1 of those thumbnail in a gallery, I wanted it to redirect to a page/post.

    Cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter beckhamlkc

    (@beckhamlkc)

    i quote mothnyc:

    Parap’s solution got me almost there…

    What I’m going for is a grid of images (magazine covers) that link to urls (pages hosting all the articles from each issue). Paraps solution enabled me to link each image with a webpage, but unfortunately, those webpages are coming up inside the image rotator. Is there anyway to get a direct link?

    That was an issue as well.. Is there a way to redirect it to a page/post?

    p/s: I think we can do something at Options->Effects,

    JavaScript Thumbnail effect:Custom

    Link Code line : ????

    But not sure what to put on Link Code line..

    Appreciate anyone who could enlighten.. 🙂

    Thread Starter beckhamlkc

    (@beckhamlkc)

    This is resolved. I made changes to <plugindirectory> –>view –> gallery.php
    I changed the thumb’s hyperlink tag to alttext. Go ahead and put the page you want to point at the alt field of your image.

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

    Cheers,

    Long live NextGen Gallery and Alex 😉

    Cool solution, please note that you can place your template into your theme folder to save it for the next upgrade

    Sorry Beckhamlkc where is that file?

    I’m with Steve…. where is the path way to >plugindirectory> –>view –> gallery.php?

    And pnce there is this a matter or switching out code for code?

    Thanks!

    I have a visual and step by step tutorial for this:

    http://home.yourconame.com/nextgen-linking-image-to-url/2009/archives/

    Thanks to beckhamlkc for the light of leading.

    ~Adrie Silva
    http://www.silvaprints.com

    Anyone knows how can I link the image (not thumbnail) to an URL? So when the user clicks the thumbnail they should be redirected to an URL instead of closing the image. I really need this. Please advise.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: NextGEN Gallery] How do you link a thumbnail gallery to pages’ is closed to new replies.