NextGEN Gallery Template — Image Link
-
A simple hack to make images in a specific gallery link to a page.
Under your alttext field in the gallery, enter the url.
Copy the gallery.php template.
Within your gallery-copy.php template, change the following:
<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
to
<a href="<?php echo $image->alttext ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
When you enter the short code in a page, add the template:
[nggallery id=x template=copy]
I’m pretty new to php, but this seems to work in a way that allows you to have galleries with links and galleries with singlepic in the same blog.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘NextGEN Gallery Template — Image Link’ is closed to new replies.