For this short tutorial I will show you how to hide your header completely until the user scrolls down a certain amount of px. So be before we begin let’s get the important stuff out of the way.
My Working Environment
Theme: Hello Theme
Elementor Version: Pro ( Needed to build custom header )
Additional Plugins: Simple Custom CSS & JS
Go to your header template and give it the ( Id ) of :
Next go to your scrolling effect options and select sticky top and also increase the z-index to 50 or higher.
For the css you can include the CSS within your section options or add it to your customizer the choice is really yours. I added mine to my child theme.
Copy and paste the below CSS
To add the jQuery to your site we will be using our additional plugin Simple Custom CSS & JS.
Navigate to Custom CSS & JS > Add Custom JS and paste the jQuery below and give it a descriptive title. Also choose to have the JS placed in the footer of your site.
Save it and witness the magic that is jQuery.
If you want to be extra creative duplicate your header inside your template and do not apply the sticky top and leave off the ID. This will give you a menu on page load but will flow upward when the users scroll and the sticky header will slide in to view later down the page.
IMPORTANT :: If you correctly complete this tutorial when return to your template to edit or make changes your header section with the id of site_header will not be visible because of the CSS. You may need to comment out the CSS to make changes.