Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Galleria plugin: How to add links?

I´m talking about this Galleria plugin. Maybe this is too simple, but I can´t find anything in the documentation page: I have this galleria implementation. I want to add a different link to every image, so that the user can click on some image and go somewhere. How can I do that? Or where to find the answer?

like image 915
Edgar Avatar asked Mar 15 '11 23:03

Edgar


People also ask

How do I add a link to a gallery in WordPress?

Simply select the image and then click the 'Insert Link' icon. After that, you can enter a custom URL or select a Media File or an Attachment Page to link the image. We hope this article helped you add custom links to gallery images in WordPress.

How do I add a link to a gallery in Elementor?

Link To – Set a link to a custom URL, media file, or no link. Choose “media file” to link directly to the location of the image within your media library. Choose “custom URL” to link to any page on any site. Choose “none” if you don't want to add a link to the image at all.


1 Answers

Another option is to give the URL that you want to link to in the longdesc attribute of your IMG tag, like this:

<img src="mypic1.jpg" longdesc="http://www.amazon.co.uk" >
<img src="mypic2.jpg" longdesc="http://www.google.com" >

The Galleria code will automatically create a link from the longdesc URL if you supply one. This is a documented feature, but it is rather tucked away.

like image 55
Victoria Avatar answered Sep 18 '22 02:09

Victoria