Home › Forums › Support › keep top bar visible with sticky navigation This topic has 7 replies, 3 voices, and was last updated 5 months, 3 weeks ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 4, 2022 at 8:27 pm #2363507 Paul i’d like to use the top bar as a search box area (and maybe contact info) but i’d like it to be visible with the sticky menu when scrolling, and also on mobile header. October 4, 2022 at 9:06 pm #2363530 Fernando Customer Support Hi Paul, Can you add the Search Block through a Block Element hooked to before_header? Then, we’ll go from there. October 4, 2022 at 9:35 pm #2363538 Paul ok did that. not sure why my html block isn’t on right side now, but can fix later. October 4, 2022 at 10:24 pm #2363576 Fernando Customer Support Can you change the priority to 1? October 5, 2022 at 5:10 am #2363916 Paul did that, thanks. October 5, 2022 at 5:48 pm #2364640 Fernando Customer Support Great! Now, add my-custom-top-bar to the class list of the Container Block of your custom top bar. Then, add this in Appearance > Customize > Additional CSS: .gb-container.my-custom-top-bar { position: sticky; top: 0; z-index: 9999; } nav#sticky-navigation.is_stuck { top: 39px !important; } Try adding a Background color to the Container Block as well so it’s not transparent on sticky. October 7, 2022 at 3:25 pm #2366652 Paul getting closer, (thank you!) but on mobile, when the page is scrolled, the normal header goes under the element custom top bar. edit: we did put some css in to help but not sure if it’s ideal and it’s still a bit clunky. we think maybe we need to remove the transition ?? October 8, 2022 at 6:10 am #2367006 DavidStaff Customer Support Hi there, have you tried removing the transition in the Customizer > Layout > Sticky Navigation ? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In