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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.