I have a Galleriffic slideshow on my page. Right now the "large" image links to the next image in the slideshow. How can I make it link to an external file instead?
Galleriffic links
2.8k Views Asked by user374557 At
2
There are 2 best solutions below
0
On
yep - at http://prestondentalgroup.com.au/downloads.html
The hyperlinks on the slide images allow viewer to open/save a PDF doc.
Works nicely (once I deciphered how to write example_path and to substitute /project/ with the URL of the PDF file (including subfolders).
So to link to readme.pdf from the site's images/downloads/ folder,
example_path becomes images/downloads/readme.pdf
and
/project/ becomes http:/prestondentalgroup.com.au/
First, you have to add a hidden div or span tag to your unordered list:
Then, add this code to your galleriffic.js file. You are grabbing the path from the span element:
Then, you add the value to the image variable:
Now tell the gallery to change the link w/ new path on the full-size gallery images:
And comment out the gallery click action here, so that your user can just use the normal link wrapping the image: