I'm currently working on a website and I'm facing some challenges with the sticky header functionality. The theme I'm using doesn't offer an option to disable the sticky header, and it also fails to add a class when the menu is in its sticky state. I have attempted changing the position to absolute, but unfortunately, that solution did not work as expected. At this point, my only option seems to be utilizing JavaScript to dynamically add a class to the header upon scrolling, allowing me to disable the sticky menu. However, I am unsure of how to go about implementing this approach successfully.
For reference, here is the link to the site:
The CSS code below pertains to the header wrapper where I tried adjusting the position property to absolute without success:
#headerwrap {
background-color: #fff;
position: fixed;
bottom: 0;
z-index: 999;
width: 100%;
}