WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: NextGen Gallery]Album gallery thumbnail not linking to gallery (3 posts)

  1. PChuprina
    Member
    Posted 2 years ago #

    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

  2. PChuprina
    Member
    Posted 2 years ago #

    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

  3. PChuprina
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic