Jump to content

Have 2 Different Portfolios with different column sizes (3, and 2)

Recommended Posts

Site URL: https://star-caterpillar-ej7s.squarespace.com/digital

Hi all, I saw some previous posts that mentioned adding custom css to 1 of the Portfolio's to change the column items. But in adding that in for my specific portfolio it's still showing 3 columns instead of 2 columns.

Maybe I have the wrong collection ID? I used inspect element in chrome to get that value: 60f654bdb2b0835cff993261

 

#collection-60f654bdb2b0835cff993261
[class^="portfolio-grid-"] {

  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  
  }

 

Link to comment
  • Replies 10
  • Views 772
  • Created
  • Last Reply

Top Posters In This Topic

3 hours ago, Candelaria said:

Site URL: https://star-caterpillar-ej7s.squarespace.com/digital

Hi all, I saw some previous posts that mentioned adding custom css to 1 of the Portfolio's to change the column items. But in adding that in for my specific portfolio it's still showing 3 columns instead of 2 columns.

Maybe I have the wrong collection ID? I used inspect element in chrome to get that value: 60f654bdb2b0835cff993261

 

#collection-60f654bdb2b0835cff993261
[class^="portfolio-grid-"] {

  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  
  }

 

Hi. Your site is private. Can you setup password & share url again?

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
8 hours ago, Candelaria said:

Yes, this is the page I want to set to 2 columns: 

https://star-caterpillar-ej7s.squarespace.com/digital

pw: squarespace

 

Add to Design > Custom CSS

/* Digital page 3 to 2 columns */
body#collection-60f654bdb2b0835cff9931d1 div#gridThumbs {
    grid-template-columns: repeat(2,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
  • 4 weeks later...
On 8/25/2021 at 6:48 AM, Candelaria said:

Yes, I need help as the above code works great on desktop, but on mobile those elements stay side to side and the text is breaking across a few lines and doesn't look good. How could I have this show up better on mobile?

Screen Shot 2021-08-24 at 6.47.21 PM.png

Hi,

Do you want them stacked on mobile only?

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.