Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hide an image in a gallery just on Mobile


Hamish999

Question

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

Hey, 

Due to the way that the mobile changes the images on mobile the gallery that was 3 by 3 images (9 total) on desktop, is now 2 by 2 so there's now an image at the end of the gallery on its own which looks awkward and bad. Is there a way around this? Attached is how it looks on mobile. The images are currently in a gallery. I could add them separately as photos and hide the last image/block. But is there a way to remove the empty space where the image used to be? 

Thanks! 
Hamish

Screenshot 2021-05-14 at 14.20.55.png

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

3 answers to this question

Recommended Posts

  • 0
On 5/14/2021 at 7:25 PM, Hamish999 said:

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

Hey, 

Due to the way that the mobile changes the images on mobile the gallery that was 3 by 3 images (9 total) on desktop, is now 2 by 2 so there's now an image at the end of the gallery on its own which looks awkward and bad. Is there a way around this? Attached is how it looks on mobile. The images are currently in a gallery. I could add them separately as photos and hide the last image/block. But is there a way to remove the empty space where the image used to be? 

Thanks! 
Hamish

Screenshot 2021-05-14 at 14.20.55.png

Which page is that

Greeting, it's BaNgan from 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, Portfolio hover Replace Link Style
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
  • 0

@Hamish999 Add to Design > Custom CSS

/* Mobile */
@media screen and (max-width:767px) {
/* Company headshots */
div#block-yui_3_17_2_1_1616771177915_9711 .slide:nth-child(9) {
    display: none;
}
/* Individuals headshots */
div#block-yui_3_17_2_1_1616764410095_9535 .slide:nth-child(9) {
    display: none;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...