Jump to content

creating two columns in portfolio grid on mobile view

Recommended Posts

7 hours ago, werrorphotography said:

Site URL: https://www.werror.com.au/

I want to have two columns for my grid in mobile view on my home portfolio page. How can i go about this?

Try adding to Home > Design > custom css

@media only screen and (max-width: 767px) {
  section[data-section-id="6288d5bbef40836604a4f584"] #gridThumbs {
    grid-template-columns: 1fr 1fr;
  }
}

Let me know how it works on your site

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.png.b70d3ee748c29753cfb215212abeb6bc.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 4 months later...
On 5/22/2022 at 8:18 PM, bangank36 said:

Try adding to Home > Design > custom css

@media only screen and (max-width: 767px) {
  section[data-section-id="6288d5bbef40836604a4f584"] #gridThumbs {
    grid-template-columns: 1fr 1fr;
  }
}

Let me know how it works on your site

Hi there, I am looking to implement this solution as well but could not get your code to work.

Link to comment
2 hours ago, Dylan_Statham said:

Hi there, I am looking to implement this solution as well but could not get your code to work.

Have you try to change the section ID to match the one on your site?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 10/1/2022 at 11:48 AM, Dylan_Statham said:

Hi there, I am looking to implement this solution as well but could not get your code to work.

You can use this code

@media only screen and (max-width: 767px) {
  body.homepage #gridThumbs {
    grid-template-columns: 1fr 1fr;
  }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.