Shopify Dawn Theme Product Grid Spacing

Solved

Shopify Dawn Theme Product Grid Spacing

LeandroS
Explorer
60 1 12

Hello

I am building my new shopify store and have some problems with the Grid on the products.

 

I would like to change the spacing between the products (horizontal and vertical)

 

I am not able to find any code that worked.

 

The min. spacing is 4px on the editor but i want them to be really close together..

 

and also I would like the size of the price to be smaller and change the location of the 

thanks for the help!

 

Bildschirmfoto 2025-01-13 um 14.38.47.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10203 2423 3069

This is an accepted solution.

Welcome, Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

- thank you, it worked! is it also possible to have it on the desktop version? that picture will be all the way to the edge?

Add this code same instruction. 

 

.collection.page-width {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

 

And Save.

- and how can i adjust the text size from title and price so its all nice on one line?

 

/* size for titles */
.card__heading a {
    font-size: 12px;
} 
/* size for price */
.card-information .price {
    font-size: 12px;
}

 

And Save. 

Result:

Made4uoRibe_0-1736784468881.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

Replies 18 (18)

suyash1
Shopify Partner
11002 1362 1738

@LeandroS can you please give this webpage link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
LeandroS
Explorer
60 1 12

https://r1vrxk-m4.myshopify.com/ 

 

I havent connected the final domain yet

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Thanks for the info, it password protected. 

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.
LeandroS
Explorer
60 1 12

its: siatwa

suyash1
Shopify Partner
11002 1362 1738

@LeandroS please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

 

@media screen and (max-width:749px){
.card__media{margin: 0 !important;    width: 100% !important;}
.card__information {padding-bottom: 0rem !important;}
}
To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
LeandroS
Explorer
60 1 12

I just tried it, it stays the same... nothing seems to change

suyash1
Shopify Partner
11002 1362 1738

@LeandroS - not able to see it on browser view, can you please add again to check?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Hi @LeandroS 

Please, share your store URL. Thanks!

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.
LeandroS
Explorer
60 1 12

https://r1vrxk-m4.myshopify.com/ 

 

I havent connected the final domain yet

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

.grid.product-grid.grid--2-col-tablet-down.grid--4-col-desktop .card__media {
    margin: 0;
    width: 100%; 
}

.grid.product-grid.grid--2-col-tablet-down.grid--4-col-desktop .card__content {
    padding: 10px; 
}

.grid.product-grid.grid--2-col-tablet-down.grid--4-col-desktop .card__information {
    padding-bottom: 0; 
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1736777860209.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
LeandroS
Explorer
60 1 12

Hi thanks that worked great!

 

Is there a way to have the title of the product and the price of the product in the marked boxes in my screenshots?

and having the picture on mobile version going all the way to the edge?

 

Bildschirmfoto 2025-01-13 um 15.21.52.pngBildschirmfoto 2025-01-13 um 15.23.18.png

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Got it, please add this code. 

Same instruction. 

 

@media only screen and (max-width: 989px){
.collection slider-component, .collection {
    padding-left: 0;
    padding-right: 0;
}
}

.grid.product-grid.grid--2-col-tablet-down.grid--4-col-desktop .card__information,
.grid.product-grid.grid--2-col-tablet-down.grid--4-col-desktop .card__content {
    padding-left: 0;
    padding-right: 0;
}

.product-grid .card__content .card__information {
    display: flex;
    justify-content: space-between;
}

.grid.product-grid .card__information .card-information {
    width: min-content;
}

.grid.product-grid .price {
    margin-top: 0 !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1736782335439.pngMade4uoRibe_1-1736782352320.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
LeandroS
Explorer
60 1 12

thank you, it worked! is it also possible to have it on the desktop version? that picture will be all the way to the edge?

 

and how can i adjust the text size from title and price so its all nice on one line?

Made4uo-Ribe
Shopify Partner
10203 2423 3069

This is an accepted solution.

Welcome, Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

- thank you, it worked! is it also possible to have it on the desktop version? that picture will be all the way to the edge?

Add this code same instruction. 

 

.collection.page-width {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

 

And Save.

- and how can i adjust the text size from title and price so its all nice on one line?

 

/* size for titles */
.card__heading a {
    font-size: 12px;
} 
/* size for price */
.card-information .price {
    font-size: 12px;
}

 

And Save. 

Result:

Made4uoRibe_0-1736784468881.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
LeandroS
Explorer
60 1 12

thank you so much!

 

only problem i am having is the price.. its not on one line.. i found another website that has it the right way

is that also possible ?Bildschirmfoto 2025-01-13 um 15.02.56.png

Made4uo-Ribe
Shopify Partner
10203 2423 3069

Can you share the theme where you implement the code? Just like to check if we can. Thanks!

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.

DaisyVo
Shopify Partner
4451 497 591

Hi @LeandroS 

 

I hope you are well. You can follow our instructions below:


1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

 

Here is the code for Step 3:

 

.card__information {
    padding-inline: 0 !important;
    display: flex;
}
.card__information > h3.card__heading {
    width: 50%;
}
.card__content {
    padding-inline: 0 !important;
}
.card__information > .card-information {
    width: 50%;
}
.card__information > .card-information .price {
    margin-top: 0 !important;
    font-size: 14px !important;
    justify-content: right !important;
    display: flex !important;
}

 

image (69).png


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
LeandroS
Explorer
60 1 12

Hi thanks for the reply! it works with desktop version but it looks a bit crooked on the mobile version... space between text and picture

is there a way to have the pictures going all the way to the edge pf the screen on left and right? so there will be more space for the titles and prices

 

 

Bildschirmfoto 2025-01-13 um 16.03.59.png