Support » Plugin: Sticky Menu, Sticky Header (or anything!) on Scroll » Not working properly with anchor links

  • Resolved teryg93

    (@teryg93)


    I’m trying to use anchor links, but I can’t get the spacing right. On this page, I have the anchors on h4 elements. When you click on the link in the right sidebar, the header and first few lines underneath the header disappear under the top menu. I’d like the top menu to remain, but to have the anchor link and lines under it not disappear under the menu. Is there a way to do that?

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

Viewing 1 replies (of 1 total)
  • This is (sort of) expected behavior, since your anchor is shown at the top of the page (as intended), but hidden by the menu (because it’s sticky).

    The only way you can do this is by adding some spacing to your titles, much like this:

    .page-id-16 h4 {
        margin-top: 0;
        padding-top: 60px;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Not working properly with anchor links’ is closed to new replies.