Jump to content

[Share] How to change Portfolio Page to 2 Columns on Mobile

Recommended Posts

To change Portfolio Page to 2 columns on mobile, you can use this CSS code to Custom CSS box.

If you can't make it work, you can send link to portfolio page, I will check again.

#1. All Portfolio Pages

@media screen and (max-width:767px) {
  div#gridThumbs {
    grid-template-columns: repeat(2,1fr) !important;
    grid-gap: 10px 10px !important;
  }
}

image.png.20eb592f0d0eae456d10a238e397cfde.png

#2. Specific Portfolio Page

First, you need to find Portfolio Page ID.

In my example, it is: #collection-65f93e816f77e1372036b1d7

image.png.78a3156df11ae6ff6fcba945a15a3c0b.png

Next, use this CSS code

@media screen and (max-width:767px) {
  #collection-65f93e816f77e1372036b1d7 div#gridThumbs {
    grid-template-columns: repeat(2,1fr) !important;
    grid-gap: 10px 10px !important;
  }
}

image.png.f0482e47c6767f3bb45c058cad95b9ed.png

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!)

Link to comment
  • Replies 0
  • Views 377
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.