Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loorlab/da4b53630c8c0e9fbcf6b8cc27213e6a to your computer and use it in GitHub Desktop.
Save loorlab/da4b53630c8c0e9fbcf6b8cc27213e6a to your computer and use it in GitHub Desktop.
Fix: Sticky Header Overlaps Anchor in Elementor - WordPress
body:not(.elementor-editor-active) .elementor-widget-menu-anchor {
position: relative;
z-index: -1;
}
body:not(.elementor-editor-active) .elementor-menu-anchor:before {
content: "";
display: block;
height: 100px; // fixed header height
margin: -100px 0 0; // negative fixed header height
visibility: hidden;
pointer-events: none;
}
@loorlab
Copy link
Author

loorlab commented Nov 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment