Shopify themes, liquid, logos, and UX
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?
The website is www.vengastore.com
Can you help me with this issue?
Thanks!
Solved! Go to the solution
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:
If it wont work you can add !important.
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
If you have any trouble just let me know I can do this for you no problem!
@biznazz101
Unfortunately the problem remains in the mobile version.
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:
If it wont work you can add !important.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024