Hide menu bar and site title on cover section
-
I am looking to hide the menu and site title bar when the cover is visible. Once the user has scrolled to the main body of the page the site title and menu should be visible.
See site I am working on here: http://sarahlyallinteriors.co.uk/dev-home
Is there a way to make this work? Not sure what CSS might be needed.
-
Dear @12b
on the example I do not see a hidden nav-bar.
But I know what you mean.You could hide it with CUSTOM CSS and make it appear with jQuery when the Second row reached the top of the browser.
You know how to do that?
Best!
Marius
-
Dear @12b
you use this to see if an element reaches the top:
https://stackoverflow.com/questions/7543718/test-in-jquery-if-an-element-is-at-the-top-of-screenThen you add a class to the navigation-bar to make it appear again.
Beware that you need to use the jQuery like this:
http://laytheme.com/documentation.html#custom-javascriptLet me know if that works for you.
Best!
Marius
-
Dear @David22
there are many good tutorials out there which explain how to hide a div box on scroll with jQuery.
To have the menu above the cover, I would try to change the z-index. And play around with position: fixed.
Hope that helps!
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it