WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: NextGen Gallery]Album gallery thumbnail not linking to gallery

[Resolved] [Plugin: NextGen Gallery]Album gallery thumbnail not linking to gallery

  • Hello all.

    I’m having a issue with my gallery image on the nextgen gallery album page not linking. Instead of using the given code:

    <div class="ngg-thumbnail">
    					<a href="<?php echo $gallery->pagelink ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
     </div>

    From a prior forum question: different thumbnail I’m using the code:

    <div class="ngg-thumbnail">
                        <img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" />
     </div>

    This allows me to call a slightly larger special thumbnail. Results can be seen at: galleries “Forgotten Music” is the only image placed so far.

    Unfortunately when mousing over the image and clicking on it I get a mouseover effect, but no resulting action linking it to: forgotten music When I click on the title Forgotten Music I’m taken to: ?album=1&gallery=1 Not to the forgotten-music gallery page which is what i think is supposed to happen.

    Am not sure what I’ve done wrong or missed, any help, instructions or guidance is greatly appreciated.

    PChuprina

Viewing 2 replies - 1 through 2 (of 2 total)
  • A update: I’ve been able to link the gallery title to the proper gallery page, but unfortunately have not been able to link the thumbnail. Don’t know why.

    Thanks in advance for any help…..

    PChuprina

    Hello all,

    I solved the problem, which was a mistake made by me omitting some basic code.

    Instead of:

    <div class="ngg-thumbnail">
             <img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" />
    </div>

    I did:

    <div class="ngg-thumbnail">
                        <a href="<?php echo $gallery->pagelink ?>"><img class="thumb" alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" /></a>
      </div>

    I forgot <a> linking…..

    PChuprina

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: NextGen Gallery]Album gallery thumbnail not linking to gallery’ is closed to new replies.
Skip to toolbar