Jump to content

Recommended Posts

Hey,

 

Saw a few threads about this but all have different answers so I'm trying to understand exactly how i can achieve randomized images in my galleries. Do I need a specific gallery type? (masonry, stirps...?).

How do I implement them?  Code block, CSS injection...

 

Found the two threads about it so far:

 

 

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The reason answers may be different is because context is everything when you have elements that have many options.

CSS won't get the job done.

Only JavaScript can randomize elements depending on context. Also note that any JS code to randomize may not be able to truly randomize a set of images because we can't manipulate the SS backend. We can only affect info that SS dumps on the page client side.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.