Jump to content

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

Recommended Posts

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!

Link to comment
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 (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 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 (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
  • 2 months later...
  • 6 months later...

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

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

Link to comment
  • 1 year later...
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!)

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

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

Link to comment
  • 2 weeks later...
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!)

Link to comment

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

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

Link to comment
  • 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.