Home › Forums › Support › Primary navigation – appear only upon scroll. This topic has 13 replies, 4 voices, and was last updated 3 years, 3 months ago by Leo. Viewing 14 posts - 1 through 14 (of 14 total) Author Posts February 7, 2023 at 10:57 am #2524921 ammgbr Hi, how can I hide the primary navigation and have it appear only upon scrolling down? I think there is a CSS solution back from a few years ago but this might be out of date. February 7, 2023 at 11:47 am #2524980 YingStaff Customer Support Hi there, Try this: .main-navigation:not(.is_stuck) { display: none; } February 7, 2023 at 11:59 am #2524988 ammgbr Thank you that’s resolved! 😀 February 7, 2023 at 12:11 pm #2525004 YingStaff Customer Support You are welcome  🙂 February 7, 2023 at 12:46 pm #2525041 ammgbr Apologies for the follow up, is it possible to have this CSS work only for the home page and not the rest of the website? February 7, 2023 at 1:26 pm #2525080 YingStaff Customer Support Yes, you just need to add .home to the selector: .home .main-navigation:not(.is_stuck) { display: none; } February 7, 2023 at 2:16 pm #2525128 ammgbr thank you:) February 7, 2023 at 2:18 pm #2525132 YingStaff Customer Support No Problem 🙂 February 8, 2023 at 9:36 am #2526215 ammgbr Apologies for coming back to this, the solution works for desktop but not for mobile. Is it possible to make it applicable to all devices?? February 8, 2023 at 5:22 pm #2526562 Fernando Customer Support Hello there, Try replacing the code you have with this: .home nav#mobile-header:not(.is_stuck) .inside-navigation.grid-container.grid-parent, .home .main-navigation:not(.is_stuck) { display: none; } February 9, 2023 at 11:28 am #2527661 ammgbr Thank you 🙂 February 9, 2023 at 5:02 pm #2527870 Fernando Customer Support You’re welcome! 🙂 March 3, 2023 at 12:53 pm #2554538 ammgbr Hi, the above code stopped working on mobile. Is there anything I should amend in the css above? March 3, 2023 at 1:15 pm #2554561 LeoStaff Customer Support That CSS should still work – nothing has changed on our end. I’m not seeing it being added either so I’m assuming that there is a syntax error somewhere as mentioned in your other post. You can move it to the top of all your CSS to test as well. Author Posts Viewing 14 posts - 1 through 14 (of 14 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In