Hello,
I’m new to Wix Code and I’m struggling a bit to get what I want.
I have an image gallery and I want that, when an item is clicked, an image on the page is changed to the clicked item’s src and tooltip (the idea is having the gallery work as thumbnails and, when an item is clicked, the large image changes to the clicked thumbnail).
@jonatandor35 I was using it, but the Thumbnail Gallery has only one row of thumbnails (I know you can scroll horizontally, but I need several rows: I need to showcase all of my images at the same time as thumbnails)…
@joaohess There’s several ways to accomplish that. It can be done with galleries and/or repeaters.
Here’s one way:
For the full-size image you should use the slide deck gallery (hereafter: “gallery1”).
Go to its setting ad change from “crop” to “fit” if you want the whole image to be displayed
For the thumbnails use a repeater (hereafter: “repeater1”), adjust its containers to the desired size and connect it to your database.
Put a slide deck gallery (hereafter: “gallery2”) in the repeater’s container. Set the right size, set it to “fit”, set it to “when clicked: nothing happens”.
Connect the image field in gallery2 to the image in your database.
Put a completely transparent box (hereafter: “box1”) over the container
Paste the following code in the page code section: