Hey!!
I would like to reduce the space between my logo and the navigation menu. I just would like it to be shorter. Im using Dawn Theme.
I attached a screenshot so you can see what im talking about ![]()
Thank you in advance for your help
A Shopify store owner using the Dawn theme wants to reduce vertical spacing between their logo and navigation menu in the header.
Initial Solution:
A CSS code snippet is provided to add to the theme’s base.css file, targeting specific header elements with padding and margin adjustments. This successfully resolves the original poster’s issue.
Ongoing Support:
Multiple users encounter similar spacing problems across different themes (Sense, Refresh) and devices (desktop vs. mobile). Each case requires customized CSS code because:
Common Solutions Include:
padding-bottom on logo linksmargin-top on navigation menus@media queries for mobile-specific fixesCurrent Status:
The thread remains active with new users requesting help. Solutions are provided on a case-by-case basis after reviewing individual store URLs and screenshots. Most issues are successfully resolved with custom CSS targeting specific header elements.
Hey!!
I would like to reduce the space between my logo and the navigation menu. I just would like it to be shorter. Im using Dawn Theme.
I attached a screenshot so you can see what im talking about ![]()
Thank you in advance for your help
Hi @yalostore
Try this one.
a.header__heading-link.link.link--text.focus-inset {
padding-bottom: 0px;
}
#shopify-section-sections--20972431081768__header > div > header > nav {
margin-top: 0px !important;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
thank you so much!!!
This helped me a lot
Hi, I have tried this but it doesn’t seem to work. In sense theme → base.css. Nothing happens.
Hello @Bodeane
This code is for the one who posted the problem, your store might have a different code. Would you mind to share your store URL? Thanks!
Hi, thanks for your quick reply. Hereby my link: https://b805c8.myshopify.com/
Its password protected.
Made it 1112 for you
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:
nav.header__inline-menu {
margin-top: -10px !important;
}
h1.header__heading a {
padding-bottom: 0px;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks it worked!
Welcome, Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi ! both solutions didn’t work for me - can you help?
Hi @Summar
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:
nav.header__inline-menu {
margin-top: 0px !important;
}
a.header__heading-link.link.link--text.focus-inset {
padding-bottom: 0px !important;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
I’m facing the same issue in my shop, however it is on the mobile version between the logo on the left and the navigation menu. Do you know how I could solve this (refresh theme)?
Thank you!
Hello @DTours
Can i check your store? Would you mind to share your store URL? Thanks!
Hi @Made4uo-Ribe ,
thank you for the repy!
The URL is dunk-tours.de and the password is “topnewyork”. I’m also attaching a picture to visualize the issue:
Thank you!
Thanks for the info, do you mean like this?
if it is check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
@media screen and (max-width: 750px) {
.header-wrapper .header {
grid-template-columns: auto 1fr;
}
}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @Made4uo-Ribe ,
that’s exactly it, thank you so much!!! ![]()
Would it also be possible to push the header a little bit up on the mobile view?
Sure, replace with this code then.
@media screen and (max-width: 750px) {
.header-wrapper .header {
grid-template-columns: auto 1fr;
}
a.header__heading-link.link.link--text.focus-inset {
padding-bottom: 18px;
}
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
This one worked as well, just changed the padding a little bit
Thanks again for your help!
I had opened another thread about this issue but did not get any working codes. If it helps you somehow, you could post the code there and I will mark your reply as solution
Here is the thread: