How can I remove the white space on my website header?

How can I remove the white space on my website header?

shellbell
Shopify Partner
94 1 14

Hi I want to get rid of the space on the bottom of the navigation menu between that and the banner. 

 

Preview link: https://sdu4ldfqt2kkudnw-24249035.shopifypreview.com

 

Screen Shot 2023-06-05 at 4.22.36 PM.png

Replies 4 (4)

Ujjaval
Shopify Partner
1242 197 213

@shellbell add below css into base.css file 

@media (min-width:769px)
{
div#StickyHeaderWrap {
    height: 0px !important;
}
.site-header {
    padding: 0px !important;
}
}

Ujjaval_0-1685954832773.png

 

shellbell
Shopify Partner
94 1 14

If I do that it clips my banner though and I don't want that to happen

ZestardTech
Shopify Partner
5776 1052 1392

Hello There,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > custom.css and paste this at the bottom of the file:

header#SiteHeader {
    padding: 0;
}
div#StickyHeaderWrap {
    height: auto!important;
}

ZestardTech_0-1685956793757.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Made4uo-Ribe
Shopify Partner
8431 2017 2476

Hi @shellbell ,

I understand that you want to get rid of the space on the bottom of the navigation menu between that and the banner.

The cause of the white space on that area are the larger height in the head sticky wrapper. I take out the extra height. 

  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 "theme.scss.liquid, styles.scss.liquid or base.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:
  4. And Save.

 

@media only screen and (min-width: 1024px){
div#HeaderWrapper {
    height: 248px;
}
header#SiteHeader {
    padding-bottom: 0px;
}
}

 

  • Result:
  • Ribe_Dagandara_0-1685958028913.png

    I hope it help. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.