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
27 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
1282 326 384

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
- ❤❤DONATE ❤❤Coffee tips

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
10766 2128 2248

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

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- 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
1282 326 384

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
- ❤❤DONATE ❤❤Coffee tips
zenir_official
Excursionist
27 0 4

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