Jump to content

make gallery grid 1 column for mobile

Go to solution Solved by Lesum,

Recommended Posts

Posted

Hi, 

Building this site for a client. I had this page as a masonry layout and have code to make it 1 column on the phone. But I changed to the gallery grid layout Would it be the same code except using .gallery-grid-wrapper or different code?

The site is password protected: ewn2im8RXa67t3K

Thanks!

  • Solution
Posted

@LorenAK You can add this code snippet under Custom CSS panel:

@media only screen and (max-width: 480px) {
	.gallery-grid--layout-grid .gallery-grid-wrapper {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.