Re: Increased the columns in Collection List but want to decrease for one section on mobile - Dawn T

Solved

Increased the columns in Collection List but want to decrease for one section on mobile - Dawn Theme

lushpupco
Tourist
12 0 5

I'm happy with the collection list on my homepage showing 6 columns for the first and third instance, but the second instance I'd like to show only 4 columns. Is this possible? If not, could I center the section?

 

www.lushpupco.com

 

Happy with this section (working on the font size)

lushpupco_0-1727939867557.png

 

Would like this section to be larger or centered

lushpupco_1-1727939909560.png

 

Accepted Solution (1)

BSSCommerce-HDL
Shopify Partner
2305 834 905

This is an accepted solution.

Hi @lushpupco

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
@media only screen and (max-width: 767px) {
.section-template--22975037571359__collection_list_j6Wkr8-padding .slider-mobile-gutter .collection-list {
  grid-template-columns: repeat(4, 1fr) !important;
 }
}
</style>

 

Here is result: 

BSSCommerceHDL_0-1727940449655.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

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

View solution in original post

Replies 6 (6)

BSSCommerce-HDL
Shopify Partner
2305 834 905

This is an accepted solution.

Hi @lushpupco

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
@media only screen and (max-width: 767px) {
.section-template--22975037571359__collection_list_j6Wkr8-padding .slider-mobile-gutter .collection-list {
  grid-template-columns: repeat(4, 1fr) !important;
 }
}
</style>

 

Here is result: 

BSSCommerceHDL_0-1727940449655.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

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

lushpupco
Tourist
12 0 5

Thank you, this is perfect!

BSSCommerce-HDL
Shopify Partner
2305 834 905

@lushpupco, No problem. Glad to help you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

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

Dan-From-Ryviu
Shopify Partner
10766 2128 2249

Please add this code in Custom CSS of that section to make it show 4 in the second section

@media (max-width: 750px) {
    .collection-list {
        grid-template-columns: auto auto auto auto !important;
    }
}

 

 

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Tech_Coding
Shopify Partner
501 127 125

Hello @lushpupco 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
   #shopify-section-template--22975037571349__collection_list_GUWbtw h3.card__heading a {
       font-size: 9px !important;
   }
   .slider-mobile-gutter .collection-list {
       grid-template-columns: auto auto auto auto !important;
    }
}
</style>

Tech_Coding_0-1727941144656.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

Rahul_dhiman
Shopify Partner
708 140 145

Hello @lushpupco 
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-collection-list.css
add this code at the end of the file.

ul#Slider-template--22975037571359__collection_list_j6Wkr8 {
grid-template-columns: auto auto auto auto !important;
}

result
16.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639

Checkout Apps by me