Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Remove center Gap on Collection list in Homepage

Solved

Remove center Gap on Collection list in Homepage

miltokas
Explorer
90 0 24

Hi there!

I have a homepage with a collection list of 2 items. On the web version I was able to remove the center gap using the following code:

 

<style>
@media screen and (min-width: 767px) {
.collection-list.grid {
column-gap: 0 !important;
}

 

but on the mobile version the center gap is still there, How can I remove the gap also on the mobile version?

miltokas_0-1705178354334.png

The website is www.vengastore.com

Can you help me with this issue?

Thanks!

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9039 2160 2665

This is an accepted solution.

Hi @miltokas 

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

 

@media screen and (max-width: 767px){
.grid {
    column-gap: 0px;
    justify-content: center;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1705185982068.png

 

If it wont work you can add !important. 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 3 (3)

biznazz101
Shopify Partner
494 50 94

Go to Themes> "..."> Edit Code> base.css> Then Add This Code At Bottom:

 

 

 

 

ul#Slider-template--19415971791180__7ebf5d64-1a1f-4966-a8f2-d9451a3d8d78
@media screen and (min-width: 750px) {
  .grid {
    column-gap: 0px;
    row-gap: var(--grid-desktop-vertical-spacing);
  }
}

 

 

 
Click Save and Preview Changes

biznazz101_0-1705181385503.png


If you have any trouble just let me know I can do this for you no problem!
@biznazz101 

Don't hesitate to reach out for more help with your store.
SEE OUR TASK STORE or check us out via our profile! FREE STORE AUDIT
miltokas
Explorer
90 0 24

Unfortunately the problem remains in the mobile version.

Made4uo-Ribe
Shopify Partner
9039 2160 2665

This is an accepted solution.

Hi @miltokas 

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

 

@media screen and (max-width: 767px){
.grid {
    column-gap: 0px;
    justify-content: center;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1705185982068.png

 

If it wont work you can add !important. 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.