How to adjust the margin between collection title and product grid in Dawn theme?

Solved

How to adjust the margin between collection title and product grid in Dawn theme?

InnoTier
Shopify Partner
12 0 2

The space between collection title and product grid is to big, what's the css code to adjust the space?

shopify.JPG

Accepted Solution (1)

Mehran_Ali
Shopify Partner
89 11 11

This is an accepted solution.

Hi @InnoTier 

I hope you're doing well.

 

The issue with the extra space on your collection page is not due to any margin or padding but rather an empty Rich Text section appearing after the title. You can resolve this by removing or deleting that section if it’s not in use. Here’s how you can do that:

  1. Go to Customizer.
  2. From the top dropdown, select Collection and then Default Collection.
  3. On the left-hand side, locate the Title section.
  4. After the Title, you will see a Rich Text section. Simply delete it and publish the page, and the extra space will be removed.

Note: If this solution doesn't work, feel free to contact me, and I’ll personally check and explore other options for you.

 

Here is the proof that the space is due to an extra section 

Mehran_Ali_0-1725943851152.png

 

If this solution helps you, kindly like this reply and mark it as a solution.

If you need an expert Shopify developer for customization and development, feel free to contact me via email or WhatsApp.

Email: [email protected]


WhatsApp: +92 343 0211536

View solution in original post

Replies 6 (6)

DaveedValencia
Shopify Partner
26 5 5

First find the class for this section (right click, then inspect). Once you find the class, you can add the css.

 

.section-class{

margin-bottom:10px;

}

 

If you share a link to the page I can add the actual css you'll need to add.

InnoTier
Shopify Partner
12 0 2

Sure, this is the link to the page: https://innotier.com/collections/travel-must-haves

thank you

DaveedValencia
Shopify Partner
26 5 5
.isolate .rich-text{
    padding:0!important;
}
 
You have extra padding that is causing this. This should fix it but you could also fix it by removing the extra padding that is being added.

Mehran_Ali
Shopify Partner
89 11 11

This is an accepted solution.

Hi @InnoTier 

I hope you're doing well.

 

The issue with the extra space on your collection page is not due to any margin or padding but rather an empty Rich Text section appearing after the title. You can resolve this by removing or deleting that section if it’s not in use. Here’s how you can do that:

  1. Go to Customizer.
  2. From the top dropdown, select Collection and then Default Collection.
  3. On the left-hand side, locate the Title section.
  4. After the Title, you will see a Rich Text section. Simply delete it and publish the page, and the extra space will be removed.

Note: If this solution doesn't work, feel free to contact me, and I’ll personally check and explore other options for you.

 

Here is the proof that the space is due to an extra section 

Mehran_Ali_0-1725943851152.png

 

If this solution helps you, kindly like this reply and mark it as a solution.

If you need an expert Shopify developer for customization and development, feel free to contact me via email or WhatsApp.

Email: [email protected]


WhatsApp: +92 343 0211536

InnoTier
Shopify Partner
12 0 2

Another question, how to change the font size of collection title in mobile without affecting the font size of computer? Thanks 

 

Sweans
Shopify Partner
406 80 124

Hi @InnoTier,

 

You can make the mentioned change by adding a simple line of code.

 

.section-template--17192625963243__rich_text_zae8mP-padding {

        padding: 0 !important;

}

 

Paste this code to your base.css

 

Go to your online store> themes > Click on three dots of current active theme > edit code > search base.css in the left sidebar > open it and paste the code.

 

I hope this helps! If it does, please like it and mark it as a solution! 

If you need further assistance, feel free to reach out!

 

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at [email protected] regarding any help.
- To know more about me check out www.sweans.com