Support » Plugin: Sticky Menu (or Anything!) on Scroll » Header element always sticky

  • Resolved kinokeo

    (@kinokeo)


    I’ve used the Plugin: Sticky Menu (or Anything!) on Scroll plugin on other sites successfully. On this site, the element selected (#top-menu) always has the class .element-is-sticky even before scrolling.

    I want to apply styling to the menu only once the user starts scrolling, but I can’t see a way to do this since the .element-is-not-sticky class never appears.

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Senff

    (@senff)

    The element you select to be sticky, will get the classname element-is-sticky as soon as it’s at the top of the screen. Since your header menu is already at that point right when you load the page, it will always be sticky.

    If you don’t want it to be sticky right away, you’ll need to place it lower down the page, even only a few pixels, to ensure it’s not directly at the top upon page load.

    kinokeo

    (@kinokeo)

    Ah, that makes sense. Thanks for that!

    Plugin Author WebFactory

    (@webfactory)

    You’re welcome! If you have a minute, please leave a review. It’s what keeps the plugin going 🙂 https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.