Jump to content

Hide an image in a gallery just on Mobile

Recommended Posts

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
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

@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. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.