Hey guys, for some reason when I have my sticky header enabled which i need, on desktop when scrolling down there is a gap between the header and the top of the page. Can anyone help fix this please?
https://directcomputers.co.uk/
All the best
DC
Hey guys, for some reason when I have my sticky header enabled which i need, on desktop when scrolling down there is a gap between the header and the top of the page. Can anyone help fix this please?
https://directcomputers.co.uk/
All the best
DC
Hi @Dccomputers
Please add this Css in your Css file
.site-header-sticky .site-header{
top:-10px!important;
}
Hey thank you the only issue now is the items in the box are right at the top can you help with that please?
not understand you question!!
The items inside the header like the logo search bar etc, is now pushed to the top of the div I think it needs some padding but unsure. Do you understand?
Yes @Dccomputers
@Dccomputers Please add this css
@media screen and (min-width: 1024px){
.site-header-sticky--scrolled .site-header-main {
padding-top: 20px!important;
}}
@Dccomputers This look like this https://prnt.sc/OVpFo78p5O2z
if this work please accepted as solutions
Hey the issue now is the icons i’ve circled here are now floating out of position also if you check mobile view as well -
hi @Dccomputers
Please add this Css
.site-header-menu-toggle--button{
padding-top: 25px!important;
}
.site-header-cart--button{
padding-top:10px!important;
}
@media screen and (max-width: 767px){
.site-header-menu-toggle--button{
padding-left: 10px!important;
}
.site-header-mobile-search-button--button{
padding:20px 6px!important;
}
}
I’ve applied those but it doesn’t seem to have helped if you check
Please reload this it working fine
Yes !!
What you want here!! it’s working fine in all the media
@Dccomputers https://prnt.sc/BZyAh48UEP3j
please check now it’s prefect?
if this is perfact please replace this code
@media screen and (min-width: 1024px)
.site-header-sticky--scrolled .site-header-main {
padding-top: 14px!important;
padding-bottom: 6px!important;
}
I fixed it I added:
.site-header-wrapper {
padding-top:10px;
}
This solved everything!
Thanks for the help!