Jump to content

how to hide specific spacer blocks on mobile only

Recommended Posts

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

hello there!

 

i have some spacer blocks that help align some images... but on mobile they pile up above and below the images to create great big spaces that make too much of a gap.

 

is it possible to use code to target specific spacer blocks so they hide on mobile?

(and how do you find out those block ids for in the code?)

 

any help appreciated! thanks!

 

Edited by btn2020
Link to comment
  • btn2020 changed the title to how to hide specific spacer blocks on mobile only
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Add this code to Home > Design > Custom CSS

/* remove spacer block mobile */
@media screen and (max-width:767px) {
	.spacer-block-id {
	display: none;
}
}

Find id with https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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.