Jump to content

Hiding image in gallery until certain time and date

Recommended Posts

Site URL: https://www.samuelrauschenberger.com/

Hi there,

I'm trying to make a gallery with different images but they should all only show ina certain time frame. I've read that you can use code to hide an image (e.g. for a certain language) and was wondering if that would be possible too for a certain time and date.

Thanks for any help,

Samuel

Edit:

This is the code I was talking about:

#collection-5e8106fd14477f68e75da0f8 #block-yui_3_17_2_1_1592925794450_25638:lang(en) {
    display: none;
}

#collection-5e8106fd14477f68e75da0f8 #yui_3_17_2_1_1592934809003_162:lang(ko) {
    display: none;
}
Edited by krnprnz
Link to comment
  • Replies 1
  • Views 146
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 8/25/2022 at 3:41 PM, krnprnz said:

Site URL: https://www.samuelrauschenberger.com/

Hi there,

I'm trying to make a gallery with different images but they should all only show ina certain time frame. I've read that you can use code to hide an image (e.g. for a certain language) and was wondering if that would be possible too for a certain time and date.

Thanks for any help,

Samuel

Edit:

This is the code I was talking about:

#collection-5e8106fd14477f68e75da0f8 #block-yui_3_17_2_1_1592925794450_25638:lang(en) {
    display: none;
}

#collection-5e8106fd14477f68e75da0f8 #yui_3_17_2_1_1592934809003_162:lang(ko) {
    display: none;
}

How do you define the time and date? It is based on the client 's time or on a specific time on Global time?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.