Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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!
Solved! Go to the solution
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
@pool-care Can you please provide store URL so I can check?
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.
If my solution helped you, then please mark it as accepted.
Let me know if need further assistance
Regards,
Artzen Technologies
Hi,
Thank you for your answer!
This happens when I use the code:
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.
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024