Hi, I’m looking for a photo gallery that re-shuffles on every page load. Is there any galleries out there that do that? I don’t want images to stay in the same spot in the gallery.
Thanks!!
Hi, I’m looking for a photo gallery that re-shuffles on every page load. Is there any galleries out there that do that? I don’t want images to stay in the same spot in the gallery.
Thanks!!
This is not built into the Gallery component, but you could achieve the effect by applying some sort of random function to the Gallery. You can add .skip(random number) to your query, or just shuffle the results of the query using some sort of random function, or whatever else you can think of.
Good luck,
Yisrael
How would you go about adding this code to the gallery? Any help, would be very much appreciated!
Im not a coder but I would like to be able to randomise the layout of images on my homepage each time it is viewed. Is there a simple way you could walk me though adding this code to my site?
@bencheckley Take a look at the Random Image example .