Jump to content

Changing number of columns on single page

Recommended Posts

  • Replies 6
  • Views 2.3k
  • Created
  • Last Reply
Posted
36 minutes ago, bubblefax said:

Site URL: https://lucasswindler.com/photography-places

Hello,

on my site I have two portfolios; one that requires 3 columns, and another that only has two. But the one with two acts as if there is three (linked here

 

Is there a code so that I can change there number of columns depending on which portfolio I'm on. Thanks!

To add code for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

<style>
	.portfolio-grid-overlay {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }
</style>

image.thumb.png.298b98a7a5b5e0edd0ca06ba445b4105.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 9 months later...
Posted
On 12/6/2020 at 7:20 PM, bangank36 said:

@bangank36 is there a way to make it 1 column?

thanks!

allison

 

On 12/6/2020 at 7:20 PM, bangank36 said:

To add code for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

<style>
	.portfolio-grid-overlay {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }
</style>

image.thumb.png.298b98a7a5b5e0edd0ca06ba445b4105.png

 

Posted

@tuaphan i tried that but it's still only half width of the page (see screenshot). this is a "gallery" page type not a standard page?

 

Screen Shot 2021-09-16 at 11.59.11 AM.png

Posted
On 9/17/2021 at 1:59 AM, asnyd said:

@tuaphan i tried that but it's still only half width of the page (see screenshot). this is a "gallery" page type not a standard page?

 

Screen Shot 2021-09-16 at 11.59.11 AM.png

Looks fine here. Can you share link to page in screenshot?

image.thumb.png.85d073449c37b7654e82b9762398b677.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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.