Adjust section columns

Solved

Adjust section columns

LindStuart
Excursionist
31 0 6

Hi there -

 

I'm looking for assistance with two minor homepage design changes that I can't figure out!

 

Site: https://market.foodsocial.io/

 

1. In the "Brands we love" section, how do I shrink it down so the icons don't take up so much vertical space? Especially on desktop. I want them to still be 4 across on desktop and still 100% visible (not cut off), but not be so massive. I tried to set a max height but it wasn't working for me.

 

2. Trying to set the "Shop by dietary preference" section to be 6 columns across on desktop instead of 4. Any advice?

 

Thank you so much in advance!

Accepted Solutions (2)

BSSCommerce-B2B
Shopify Partner
1738 522 584

This is an accepted solution.

@LindStuart,
Step 1: Go to Admin -> Online store -> Theme > Edit code

Step 2: Search for the file theme.liquid

Step 3: Add this code before </body> tag

 

<style>
#shopify-section-template--23179525914910__16541619272fee0e4e div.card {
  transform: scale(0.8)
}
@media only screen and (min-width: 1050px) {
#shopify-section-template--23179525914910__165597098555c514a4 .grid-4 {
  --visible-cols: 6
}
}
</style>

 

 Result:

BSSCommerceB2B_0-1727790281061.png

BSSCommerceB2B_1-1727790288685.png

If it helps you, please like and mark it as the solution.

Best Regards 🙂

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Made4uo-Ribe
Shopify Partner
8280 1987 2439

This is an accepted solution.

Hi @LindStuart 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 989px) {
    div#shopify-section-template--23179525914910__16541619272fee0e4e .grid-4 {
        --visible-cols: 4;
    }
}

@media only screen and (min-width: 999px) {
    div#shopify-section-template--23179525914910__165597098555c514a4 .grid-4 {
        --visible-cols: 6;
    }
}

 

And Save. 

Result:

Made4uoRibe_2-1727791029367.pngMade4uoRibe_3-1727791040028.png

 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 5 (5)

BSSCommerce-B2B
Shopify Partner
1738 522 584

This is an accepted solution.

@LindStuart,
Step 1: Go to Admin -> Online store -> Theme > Edit code

Step 2: Search for the file theme.liquid

Step 3: Add this code before </body> tag

 

<style>
#shopify-section-template--23179525914910__16541619272fee0e4e div.card {
  transform: scale(0.8)
}
@media only screen and (min-width: 1050px) {
#shopify-section-template--23179525914910__165597098555c514a4 .grid-4 {
  --visible-cols: 6
}
}
</style>

 

 Result:

BSSCommerceB2B_0-1727790281061.png

BSSCommerceB2B_1-1727790288685.png

If it helps you, please like and mark it as the solution.

Best Regards 🙂

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

LindStuart
Excursionist
31 0 6

thank you so much!

Made4uo-Ribe
Shopify Partner
8280 1987 2439

This is an accepted solution.

Hi @LindStuart 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 989px) {
    div#shopify-section-template--23179525914910__16541619272fee0e4e .grid-4 {
        --visible-cols: 4;
    }
}

@media only screen and (min-width: 999px) {
    div#shopify-section-template--23179525914910__165597098555c514a4 .grid-4 {
        --visible-cols: 6;
    }
}

 

And Save. 

Result:

Made4uoRibe_2-1727791029367.pngMade4uoRibe_3-1727791040028.png

 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
LindStuart
Excursionist
31 0 6

thank you so much!!

Made4uo-Ribe
Shopify Partner
8280 1987 2439

Welcome! Would you mind hitting 'like' as well? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.