Jump to content

How do I add more than 6 columns to a gallery block?

Recommended Posts

Posted

Site URL: https://www.wellputryan.com/en/services

Password to the site is hello123

I am on a personal plan and cannot inject custom code to the header. I need to use a code block.

I want to override Squarespace's maximum column limit of 6 so that all 8 logos are on one line. Can anyone help with the CSS for that? And where should I put the code block so it doesn't make the text look bad? Bottom of the page?

Thank you!

Posted
6 minutes ago, RyanZhuo said:

Site URL: https://www.wellputryan.com/en/services

Password to the site is hello123

I am on a personal plan and cannot inject custom code to the header. I need to use a code block.

I want to override Squarespace's maximum column limit of 6 so that all 8 logos are on one line. Can anyone help with the CSS for that? And where should I put the code block so it doesn't make the text look bad? Bottom of the page?

Thank you!

try

section[data-section-id="606c4eff9e0ee4089fd0006b"] .gallery-grid-wrapper {
      grid-template-columns: repeat(8, 1fr) !important;
}

image.thumb.png.4a0f97c5bf14ff9877137bbfbcd8f6d6.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
On 4/12/2021 at 8:51 PM, RyanZhuo said:

Site URL: https://www.wellputryan.com/en/services

Password to the site is hello123

I am on a personal plan and cannot inject custom code to the header. I need to use a code block.

I want to override Squarespace's maximum column limit of 6 so that all 8 logos are on one line. Can anyone help with the CSS for that? And where should I put the code block so it doesn't make the text look bad? Bottom of the page?

Thank you!

Squarespace 7.1 brought gallery block back!, so you can add up to 10 column!

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 2 months later...
  • 6 months later...
Posted

I am trying to edit multiple galleries at once but am only able to edit one of them here is the code I am using:

section[data-section-id="61e332e238ef86106799c556"] .gallery-grid-wrapper {
      grid-template-columns: repeat(14, 1fr) !important;

section[data-section-id="61e32a19b0a6b3288a64fda7"] .gallery-grid-wrapper {
      grid-template-columns: repeat(7, 1fr) !important;
  
section[data-section-id="61e3274505a42f2bec110cdf"] .gallery-grid-wrapper {
      grid-template-columns: repeat(7, 1fr) !important;
  }}}

https://splashtext.art/collections/a-thiefs-thesis

Posted
On 1/16/2022 at 8:59 AM, splashtext said:

I am trying to edit multiple galleries at once but am only able to edit one of them here is the code I am using:

section[data-section-id="61e332e238ef86106799c556"] .gallery-grid-wrapper {
      grid-template-columns: repeat(14, 1fr) !important;

section[data-section-id="61e32a19b0a6b3288a64fda7"] .gallery-grid-wrapper {
      grid-template-columns: repeat(7, 1fr) !important;
  
section[data-section-id="61e3274505a42f2bec110cdf"] .gallery-grid-wrapper {
      grid-template-columns: repeat(7, 1fr) !important;
  }}}

https://splashtext.art/collections/a-thiefs-thesis

You can combine

section[data-section-id="61e332e238ef86106799c556"] .gallery-grid-wrapper {
      grid-template-columns: repeat(14, 1fr) !important;
}
section[data-section-id="61e32a19b0a6b3288a64fda7"], section[data-section-id="61e3274505a42f2bec110cdf"] {
.gallery-grid-wrapper {
      grid-template-columns: repeat(7, 1fr) !important;
  }
}

 

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!)

  • 1 year later...
Posted
On 11/21/2023 at 12:23 AM, Romer said:

Hello @tuanphan could you help, please? I want to add more columns to my gallery. do i use the same code as above, but change the data-section-id?

https://penguin-blue-jseg.squarespace.com/


Thanks

 

You mean for Unsere Partner logos?

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!)

Posted
On 11/23/2023 at 11:15 PM, Romer said:

@tuanphan Oh no. I was trying something different.  I want to add more columns to a simple gallery. I am restricted to 6 columns.

 

We need to use code to increase more columns. Which gallery are you referring to? We can give code to do this

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!)

Posted
On 11/27/2023 at 3:53 PM, Romer said:

@tuanphan  I want this gallery to have more than 6 columns. What code needs to be added? Thanks

Screenshot 2023-11-27 at 09.49.23.png

Screenshot 2023-11-27 at 09.50.01.png

Screenshot 2023-11-27 at 09.52.36.png

All Gallery Grid Simple on your site or gallery on specific page? If specific, can you share url? If all, let me know, I will give code

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!)

  • 2 weeks later...
Posted
On 12/6/2023 at 7:13 PM, Romer said:

Hello, @tuanphan.  Just the specific grid on page. section[data-section-id="6564581a43ba8403985922d5"]

https://www.roemerwildberger.com/

penguin-blue-jseg.squarespace.com

 

I don't see this section section[data-section-id="6564581a43ba8403985922d5"] on the page

Can you take a screenshot? Maybe your id is incorrect

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!)

Posted
57 minutes ago, tuanphan said:

I don't see this section section[data-section-id="6564581a43ba8403985922d5"] on the page

Can you take a screenshot? Maybe your id is incorrect

@tuanphan The section is hidden at the moment. Does that change anything?

Posted
On 12/9/2023 at 3:00 AM, tuanphan said:

Use this CSS code, you can adjust number 8

/* Gallery logos */
@media screen and (min-width:992px) {
section[data-section-id="6564581a43ba8403985922d5"] .gallery-grid-wrapper {
    grid-template-columns: repeat(8,1fr) !important;
}
}

image.thumb.png.68d694f1640ac5520b4977fb41b5c0c3.png

Doesn't seem to be working. Have I made a mistake?

Screenshot 2023-12-13 at 16.40.46.png

  • 4 weeks later...

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.