When scrolling down, there is a gap between the header menu and the page.

Solved

When scrolling down, there is a gap between the header menu and the page.

zenir_official
Excursionist
28 0 4

It's exactly the problem I said in the title, I tried to fix the javascript but I'm not sure how to do it, which part should I fix? I'm using the Dawn theme.

https://www.shopzenir.com/

Accepted Solution (1)

EBOOST
Shopify Partner
1405 352 433

This is an accepted solution.

Hi @zenir_official ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code
2. Assets/base.css
3. Add code below to end of file

body:not(.overflow-hidden) {
	overflow: visible!important;
}
.section-header.shopify-section-group-header-group{
	z-index: 100000!important;
	position: -webkit-sticky;
	position: sticky;
	top: 0;

}
.shopify-section-group-header-group.announcement-bar-section {
	z-index: initial!important;
}
#shopify-section-sections--22410486317355__header sticky-header {
	position: static!important;
}
body #smi-template--22410490839339__smi_slideshow_1_2_PGVfnn{
	margin-top: 0!important;
}
body .breadcrumbs {
	top: 33px;
	margin-bottom: 0;
}
- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free. Github.com/eboost10
- ❤❤DONATE ❤❤Coffee tips

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
12019 2348 2528

Did you add customized code to make the header sticky?

 Please remove your code and go to store admin > Sale channels > Online Store > Themes > Customize > Header > Header sticky Screenshot 2024-07-15 at 09.37.35.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

EBOOST
Shopify Partner
1405 352 433

This is an accepted solution.

Hi @zenir_official ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code
2. Assets/base.css
3. Add code below to end of file

body:not(.overflow-hidden) {
	overflow: visible!important;
}
.section-header.shopify-section-group-header-group{
	z-index: 100000!important;
	position: -webkit-sticky;
	position: sticky;
	top: 0;

}
.shopify-section-group-header-group.announcement-bar-section {
	z-index: initial!important;
}
#shopify-section-sections--22410486317355__header sticky-header {
	position: static!important;
}
body #smi-template--22410490839339__smi_slideshow_1_2_PGVfnn{
	margin-top: 0!important;
}
body .breadcrumbs {
	top: 33px;
	margin-bottom: 0;
}
- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free. Github.com/eboost10
- ❤❤DONATE ❤❤Coffee tips
zenir_official
Excursionist
28 0 4

The code works as I had hoped. Thank you so much! 🙂