Refresh theme: Number of columns on desktop

Hi. I’m trying to make a product grid with 3 columns on my Featured Collection list. However, when I set “Number of columns on desktop” to 3 (or to 2, or to 1), the grid stays unchanged on 4 columns. If I change it to 5 columns it will change to 5. Anyways, I want it to 3 columns and it will not work. Please help.

1 Like

Hi @HelplessSoul77

Would you mind to share your Store URL website? with password if its protected. Thanks!

Hi, you should be able to access via this link https://ylto5rmgvonq259a-77279330645.shopifypreview.com

1 Like

Hi @HelplessSoul77

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
slider-component.slider-mobile-gutter.page-width.page-width-desktop.scroll-trigger.animate--slide-in .grid {
    column-gap: 50px;
    justify-content: center;
}
1 Like

Hi @Made4uo-Ribe , it worked. Thanks a lot for a swift solution.

1 Like

Welcome, Please dont forget to Like as well. Thanks!

1 Like

Hi. It worked yesterday, it doesn’t work today. Can you please check @Made4uo-Ribe ?

https://m15qsid29g7xj2ae-77279330645.shopifypreview.com

Thank you.

1 Like

In your base.css file, please add closing bracket on the top of the code.

From this:

To this.

@Made4uo-Ribe I added the closing bracket. It is still the same, nothing changed.

1 Like

Replace to this code.

#shopify-section-template--20675389129045__3314a5a6-50dd-422e-accc-382d03bc1ee5 .grid {
    column-gap: 50px !important;
    justify-content: center !important;
}

And Save.

1 Like

It helped. Looks fine now. Thank you @Made4uo-Ribe

1 Like

@Made4uo-Ribe I messed up something :slightly_smiling_face: I added a bit of a formatting code to base.css and now your code which was accepted solution doesn’t work anymore. Could you Edited by Community Moderator help me out with getting 3 columns instead of 4 on my main page again?

Never mind, I made it work with changing product width: 33.33% !important;

Thanks anyway.

1 Like