Comments Liisa Kankkunen started the conversationOctober 20, 2018 at 1:06amHow can I make the navigation menu to stay on top of the screen when scrolling down the page on a mobile device? 125Alexander repliedOctober 21, 2018 at 2:22amHi,Open scripts.js and edit this part of code.Edit this function like so: /* Sticky Navigation -------------------------------------------------------*/ $window.scroll(function(){ scrollToTop(); var $navHolder = $('.nav__holder'); if ($window.scrollTop() > 10) { $navHolder.addClass('nav__holder--sticky'); }else { $navHolder.removeClass('nav__holder--sticky'); } });Remove this function: function stickyNavRemove() { var $navHolder = $('.nav__holder'); if (!minWidth(992)) { $navHolder.removeClass('nav--sticky'); } else { $navHolder.addClass('nav--sticky'); } } User friendly WordPress themes deothemes.comLiisa Kankkunen repliedOctober 31, 2018 at 4:49amThank you very much - that worked - Yay!And how do I make the navigation to be sticky - on top of the page (no padding) and 100% visible in all the screen sizes - the same idea as with the mobile question below?LLiisa Kankkunen repliedOctober 31, 2018 at 5:16am..while keeping the cookies notification window to appear on top of the navigation until Confirmed button is pressed? 125Alexander repliedOctober 31, 2018 at 7:56amHello Lisa.Try to add this CSS code to your style.css to the bottom part: @media only screen and (min-width: 992px) .nav__holder { margin-top: 0; } .nav--sticky { position: relative; } .nav__holder--sticky { position: fixed; }} Cheers. User friendly WordPress themes deothemes.com Sign in to reply ...
How can I make the navigation menu to stay on top of the screen when scrolling down the page on a mobile device?
Hi,
Open scripts.js and edit this part of code.
Edit this function like so:
Remove this function:
User friendly WordPress themes
deothemes.com
Thank you very much - that worked - Yay!
And how do I make the navigation to be sticky - on top of the page (no padding) and 100% visible in all the screen sizes - the same idea as with the mobile question below?
L
..while keeping the cookies notification window to appear on top of the navigation until Confirmed button is pressed?
Hello Lisa.
Try to add this CSS code to your style.css to the bottom part:
Cheers.
User friendly WordPress themes
deothemes.com