Jump to content

1 Column galleries for mobile (entire site)

Recommended Posts

  • Replies 3
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

@LeonF You can add this code snippet within the Custom CSS panel:

@media only screen and (max-width:767px) {
	.gallery-masonry-wrapper {
		height: auto !important;
	}
	figure.gallery-masonry-item {
		position: relative !important;
		width: 100% !important;
		transform: unset !important;
	}
	.gallery-masonry-item-wrapper {
		height: auto !important;
	}
	.gallery-masonry .gallery-masonry-item[data-loaded] img {
		width: 100% !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?

Link to comment

@LeonF The code snippet I provided in my previous comment will only work for masonary grid. You can add this code snippet for the other galleries you mentioned:

@media only screen and (max-width:767px) {
	.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?

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.