Site logo

Archived topic

sticky top bar - accommodating the admin menu bar

3 replies · Started by Duncan on June 20, 2019

Viewing posts 1–4 of 4

Hi,

I wanted to make the top bar sticky, so I've added the CSS from this post. It works perfectly when I'm logged out, but when I'm logged in, the top bar sits behind the admin menu.

Is there a way to accommodate the height of the admin bar when logged in, that doesn't affect the site to logged out users?

Thanks

Duncan

https://bc.ryedalewebdesign.com/

Hi there,

you could add this to your CSS:

.admin-bar .top-bar {
    top: 41px;
}

Perfect - thanks for the speedy support!

Glad to be of help.

This archived topic is closed to new replies.