[Plugin: Portfolio Slideshow] Creating links from images in a slideshow to pages
-
Hi,
I am working on a kind of gallery website which is strongly image based and the main slider that you arrive at on the home page introduces the artist highlights so on the one hand you can scroll through these images manually and/or the slideshow plays out but on the other hand I really need to be able to link the artists work to the artist portfolio page. I am tearing my hair out trying to figure this out. The closest piece of code I have found to answer the how of this is:
Hi, I wanted the same thing. I modified the code so that when you click the image, it launches the image url instead of the next slide.?I changed this line:?$slideshow .= ““;?to the following 3:
$slideshow .= “<a href=\””;
$slideshow .= wp_get_attachment_url($attachment->ID);
$slideshow .= “\”>”;
Note that the class=\”slideshow-next\” needs to be removed or it won’t work.?If you’re using the lightbox plugin, you could change the last line to read:?$slideshow .= “\” rel=\”lightbox\”>”;?to make your images launch in lightbox. It’s Pretty.
Now someone just needs to make this an option in the plugin options ??However as you can see its problematic. I loose the ability to scroll through the images and anyway, this only takes you to the image attachment and does not enable me to go to the portfolio page. Please help!
https://curatedworks.com/home/
https://www.ads-software.com/extend/plugins/portfolio-slideshow/
- The topic ‘[Plugin: Portfolio Slideshow] Creating links from images in a slideshow to pages’ is closed to new replies.