Home › Forums › Support › Disabling Top Bar leaves white space at top on scroll This topic has 11 replies, 4 voices, and was last updated 4 years, 9 months ago by Ying. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts July 8, 2021 at 8:58 am #1849088 Chad I’ve disabled the top bar under the Content Container > Disable Elements in WP Admin, but when the user scrolls there is a white space at the top. Any ideas? Thanks! July 8, 2021 at 9:04 am #1849101 DavidStaff Customer Support Hi there, your site is not allowing me access – it has Access Denied. Can you check the URL and let me know July 8, 2021 at 11:56 am #1849213 Chad Hi David, Sorry, the site can only be accessed within the US. But maybe try to access this other link. July 8, 2021 at 12:00 pm #1849217 LeoStaff Customer Support That’s because you are using this CSS to fix the header: .site-header { position: fixed; width: 100%; top: 40px; z-index: 99; } So the site header is always 40px from the top regardless there is a top bar or not. July 8, 2021 at 12:24 pm #1849232 Chad Okay, thanks! Are we adding the sticky header the wrong way? Is there a way to achieve this without CSS (or just a better way)? Thanks again! July 8, 2021 at 12:43 pm #1849249 LeoStaff Customer Support Is that all you want in the header? Just a logo and no menu items? July 8, 2021 at 12:55 pm #1849260 Chad On that specific page yes. We have a handful of pages that disable some elements, but most of our pages display the full header, nav and top bar. So, we want the sticky header globally. Hope that makes sense and thanks again! July 8, 2021 at 1:13 pm #1849268 YingStaff Customer Support Hi Chad, If you don’t need any transition effect for the sticky header, then using CSS is the better way compared to using the sticky option in the customizer, since CSS loads faster than Javascript. You can try this CSS for this specific page: .page-id-5392 .site-header { top: 0; } July 8, 2021 at 3:28 pm #1849358 Chad Okay, so basically I could add .site header {top: 0;} to all of our pages that I’ve disabled the top bar? July 8, 2021 at 3:51 pm #1849365 YingStaff Customer Support Yes, correct 🙂 July 8, 2021 at 5:26 pm #1849404 Chad OKay, will go this route. Thank you! July 8, 2021 at 5:37 pm #1849409 YingStaff Customer Support No problem 🙂 Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In