Jump to content

Change Columns in Only One Gallery on Page

Recommended Posts

Site URL: https://cat-wedge-xh9c.squarespace.com/about

I have two gallerys on my 'About' page - one for staff and one for our BOD. I want only one of these - the BOD - to display in three columns on mobile. By using this code : 

@media screen and (max-width:800px) {
.gallery-grid-wrapper {
    grid-template-columns: repeat(3,1fr) !important;
      grid-row-gap: 3vw !important;

I can change it to three columns, but it changes both of the blocks on the page. 


Can someone tell me how to just specify that one section that I want to change? Thanks!

Website: https://cat-wedge-xh9c.squarespace.com/about

Edited by Smartyart
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can add the section-id at the beginning of the code to specify just one section. Your BOD section-id is:


I use Heather Tovey's Chrome Extension Squarespace ID Finder to make finding those fast and easy. 

christyprice.com  🇺🇸 Austin, TX US 

  For Web Designers: Squarespace Client Process Checklist. Save time and bring consistency to your web design projects. Receive a Notion doc template with my 100+ item client process checklist.

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.