Shopify themes, liquid, logos, and UX
Please add different codes for mobile and desktop I want 10 px on desktop and 14 on mobile
Thanks in advace
Solved! Go to the solution
This is an accepted solution.
Hello @NOT1
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 (min-width: 768px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 767px){
.collection-list.grid {
column-gap: 14px !important;
}
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hi @NOT1,
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 screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
</style>
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
This is an accepted solution.
Hi @NOT1 ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
@media screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
This is an accepted solution.
Hello! Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css" OR "theme.css".
6. Add the following code at the end of the file.
@media screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Please share your store URL and password.So that I will check and let you know the exact solution here.
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
This is an accepted solution.
Hello @NOT1
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 (min-width: 768px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 767px){
.collection-list.grid {
column-gap: 14px !important;
}
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hi @NOT1,
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 screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
</style>
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
This is an accepted solution.
Hi @NOT1 ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
@media screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Hey thanks for your reply but already 5 person gave the solution but I will still get you a accept as solution 🙂
This is an accepted solution.
Hello! Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css" OR "theme.css".
6. Add the following code at the end of the file.
@media screen and (min-width: 750px) {
.collection-list.grid {
column-gap: 10px !important;
}
}
@media screen and (max-width: 749px) {
.collection-list.grid {
column-gap:14px !important;
}
}
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025