You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.
I'm trying to implement a sticky navigation that gets stuck below the WordPress admin bar, rather than appearing underneath it. The solution to this is simple:
Unfortunately, this doesn't appear to work. It always thinks top:0; is what should be set. I'm not sure if this is due to the added .admin-bar class, making it think that it's an entirely different stuck element, or if it's simply that I'm trying to change the top property at all.
In this use case, where I just want it to be stuck to the top of the body element, it doesn't make sense to add an inline style for top at all, preferably there should be a way to override that.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to implement a sticky navigation that gets stuck below the WordPress admin bar, rather than appearing underneath it. The solution to this is simple:
Unfortunately, this doesn't appear to work. It always thinks
top:0;
is what should be set. I'm not sure if this is due to the added.admin-bar
class, making it think that it's an entirely different stuck element, or if it's simply that I'm trying to change thetop
property at all.In this use case, where I just want it to be stuck to the top of the
body
element, it doesn't make sense to add an inline style fortop
at all, preferably there should be a way to override that.The text was updated successfully, but these errors were encountered: