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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login