Jump to content

Hide one specific image from all product page lighboxers

Recommended Posts

Posted
On 11/24/2024 at 3:17 PM, kylife said:

Thanks @Squareko, bit frustrating of Squarespace if I'm listing hundreds of products! Any other ideas?

Could you rename those product image into a consistent convention? We can use custom css to target those specific name/prefix and hide them

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
On 11/22/2024 at 9:45 AM, kylife said:

Hi, I would love some help with removing one specific image from a lightbox on the individual product page please.

I have six images on the page and would like to hide one of the images.

Sorry I can't share the URL but this is an example page - https://www.alanadimou.com/shop/goldfish-street

 

Thank you in advance. I'm sure @tuanphan will have something up your sleeve! 

If all images has same name, or contain a specific word

for example this image

image.png.9fb8cf0c31bd798e86a36fd2ad97a862.png

with name: alanadimou-goldfishstreet

if you add a word: hide after it

so it will be alanadimou-goldfishstreet-hide

we can use CSS code to target all

div.sqs-lightbox-padder img[src*="hide"] {
    display: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.