Jump to content

Changing number of columns on single page

Recommended Posts

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)
🗓️ 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
  • 9 months later...
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

 

Link to comment
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!)

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.