Jump to content

Different gallery types for desktop and mobile

Recommended Posts

  • Replies 1
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Hi,

You can add 2 Galleries, then use this code to Website > Website Tools > Custom CSS to hide 1 gallery section on desktop, hide another on mobile

/* Hide section on desktop */
@media screen and (min-width:768px) {
	[enter-data-section-id] {
		display: none !important;
	}
}
/* hide section on mobile */
@media screen and (max-width:767px) {
[enter-data-section-id2] {
		display: none !important;
	}
}

Use this tool to find data section id

https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

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.