How to eliminate header padding in the Dawn theme?

Solved

How to eliminate header padding in the Dawn theme?

milkymotorsport
Explorer
97 0 15

https://milkymotorsports.com/

Can someone pls provide code to remove the small amount of padding in between my logo and menu?

Screenshot 2023-11-14 at 12.02.17 PM.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

Hi @milkymotorsport 

Thanks for the info. Please 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 (min-width: 990px) {
.header:not(.header--middle-left,.header--middle-center) nav.header__inline-menu {
    margin-top: 0;
}
}

 

  • And Save. 
  • Result
  • Made4uoRibe_2-1699993247086.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

Reply 1 (1)

Made4uo-Ribe
Shopify Partner
10137 2405 3039

This is an accepted solution.

Hi @milkymotorsport 

Thanks for the info. Please 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 (min-width: 990px) {
.header:not(.header--middle-left,.header--middle-center) nav.header__inline-menu {
    margin-top: 0;
}
}

 

  • And Save. 
  • Result
  • Made4uoRibe_2-1699993247086.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.