Jump to content

Hide specific gallery image only in mobile view

Recommended Posts

17 hours ago, Ana_writes said:

Hello, I'm trying to hide three specific images in my gallery only in mobile view due to a size difference. I've tried different ways through CSS but i'm probably using the wrong selector. Would really appreciate the help, thank you. My website is: https://www.anakarinawrites.com/author and the gallery is the one at Past Workshops.

You can try

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1665061046438_38782 .slide.sqs-gallery-design-grid-slide:nth-child(1) {
    display: none;
  }
}

Let me know how it works on your site

Support me by pressing 👍  or marking as solution if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

 

On 11/1/2022 at 2:30 PM, bangank36 said:

You can try

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1665061046438_38782 .slide.sqs-gallery-design-grid-slide:nth-child(1) {
    display: none;
  }
}
 

Let me know how it works on your site

Support me by pressing 👍  or marking as solution if this useful for you

Thank you, worked like a charm!

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.