Re: Whitespace in header

Solved

Whitespace in header

pool-care
Tourist
8 0 4

Hi,

I want to make the header smaller. Now there is a lot of white space between the search bar and the categories. Is there any CSS code for this? 

 

Thank you!

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8250 1979 2429

This is an accepted solution.

Hi @pool-care 

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.

 

header .header__inner {
        row-gap: 0;
    }
header .header__inline-menu {
        margin-top: 0rem;
    }
sticky-header.header-wrapper {
    border-bottom: .1rem solid rgba(var(--color-foreground), .08);
}
.header-wrapper--border-bottom .header, .header {
    border-bottom: 0;
}

 

And save. 

Result:

Made4uoRibe_0-1724706991506.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 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.

View solution in original post

Replies 5 (5)

saim007
Shopify Partner
602 74 102

@pool-care Can you please provide store URL so I can check?

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
pool-care
Tourist
8 0 4

Artzen_tech
Shopify Partner
552 113 112

Hi @pool-care 

Its Artzen Technologies! We will be happy to help you today.

You can follow the below css which I have mentioned. And check the result.
1) Go to your Online Store
2) Edit Code
3) Find CSS File
4) Add the following CSS

.header__inline-menu ul.list-menu li header-menu .mega-menu .header__menu-item--top {
    padding: 0px 1.5rem;
    line-height: 30px;
}


This is your desired result.

Artzen_tech_1-1724666433155.png

 

 

If my solution helped you, then please mark it as accepted.

Let me know if need further assistance
Regards,
Artzen Technologies

 

 

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
pool-care
Tourist
8 0 4

Hi, 

Thank you for your answer!

 

This happens when I use the code:

poolcare_0-1724668063531.png

The arrows are on the categories. Can you help with that? 

 

By the way, is there a solution for making everything in the header a bit smaller? Like the search bar etc. 

Made4uo-Ribe
Shopify Partner
8250 1979 2429

This is an accepted solution.

Hi @pool-care 

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.

 

header .header__inner {
        row-gap: 0;
    }
header .header__inline-menu {
        margin-top: 0rem;
    }
sticky-header.header-wrapper {
    border-bottom: .1rem solid rgba(var(--color-foreground), .08);
}
.header-wrapper--border-bottom .header, .header {
    border-bottom: 0;
}

 

And save. 

Result:

Made4uoRibe_0-1724706991506.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 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.