Title: Fixed Nav &#8211; link scroll position incorrect
Last modified: August 25, 2019

---

# Fixed Nav – link scroll position incorrect

 *  Resolved [nidak](https://wordpress.org/support/users/nidak/)
 * (@nidak)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/)
 * When I click on the links it seems the link is scrolling but might be hidden 
   under my fixed nav. The nav is 100 pixels from the top, and it may not be that
   the link is not scrolling but that I can’t seem to offset to accomodate the fixed
   nav.
 * Can you help or add an option to allow for a fixed nav?
 * Thanks, NK
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffixed-nav-link-scroll-position-incorrect%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11867086)
 * Hello!
 * Use option “Smooth Scroll Offset”. For example, set “150”.
    This is should resolve
   your problem.
 *  Thread Starter [nidak](https://wordpress.org/support/users/nidak/)
 * (@nidak)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868397)
 * I selected that and put in 300px. That is what it is set to right now. No matter
   what value I put in there, nothing happens… It’s not applying the offset. Can
   you help?
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868440)
 * How you add table of contents?
    Shortcode or widget?
 *  Thread Starter [nidak](https://wordpress.org/support/users/nidak/)
 * (@nidak)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868485)
 * Widget. Should I add as shortcode? If yes, please let me know how. I don’t know
   how to at present. I added TOC as a widget to a fixed sidebar.
    -  This reply was modified 6 years, 9 months ago by [nidak](https://wordpress.org/support/users/nidak/).
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868497)
 * Widget should work is good.
 * Try set Smooth scroll offset for widget as this: [http://joxi.net/lJ2bgYF0DKJvA6.jpg](http://joxi.net/lJ2bgYF0DKJvA6.jpg)
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868501)
 * Can you write me to [ted@theluckywp.com](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/ted@theluckywp.com?output_format=md)
   and we try resolve your problem operatively?
 *  Thread Starter [nidak](https://wordpress.org/support/users/nidak/)
 * (@nidak)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868563)
 * It works! Thanks so much!
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-11868571)
 * Fine! 🙂
 * [@nidak](https://wordpress.org/support/users/nidak/) if you have a time, please
   rate the plugin here: [https://wordpress.org/support/plugin/luckywp-table-of-contents/reviews/#new-post](https://wordpress.org/support/plugin/luckywp-table-of-contents/reviews/#new-post)
 *  [Philip Faster](https://wordpress.org/support/users/philipfaster/)
 * (@philipfaster)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12145997)
 * Great, but I need to search several pages of this support before get into this
   topic… LOL
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12146050)
 * [@philipfaster](https://wordpress.org/support/users/philipfaster/) Did you manage
   to solve your problem?
 *  [Philip Faster](https://wordpress.org/support/users/philipfaster/)
 * (@philipfaster)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12146260)
 * yes, “Scroll Offset Top” is what I’m searching
 *  [seodoorrobert](https://wordpress.org/support/users/seodoorrobert/)
 * (@seodoorrobert)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12617094)
 * Hi there,
 * I’ve set the “Scroll Offset Top” at 100px and that works great. But when I link
   to a TOC-link from another page, the title disappeares behind the sticky menu.
 * Example. I link from:
    [https://www.travelcapture.nl/kosten-vakantie-zanzibar/](https://www.travelcapture.nl/kosten-vakantie-zanzibar/)
 * To:
    [https://www.travelcapture.nl/praktische-informatie-zanzibar/#Vaccinaties_het_gele_boekje](https://www.travelcapture.nl/praktische-informatie-zanzibar/#Vaccinaties_het_gele_boekje)
 * Any idea how to fix this problem?
 * Thank you in advance.
    Robert
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12620900)
 * Hello, [@seodoorrobert](https://wordpress.org/support/users/seodoorrobert/) !
 * Try use this JS-code:
    `if (document.location.hash!='') { window.scroll(0, window.
   pageYOffset-100) }`

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Fixed Nav – link scroll position incorrect’ is closed to new replies.

 * ![](https://ps.w.org/luckywp-table-of-contents/assets/icon-256x256.png?rev=2100677)
 * [LuckyWP Table of Contents](https://wordpress.org/plugins/luckywp-table-of-contents/)
 * [Support Threads](https://wordpress.org/support/plugin/luckywp-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/luckywp-table-of-contents/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/fixed-nav-link-scroll-position-incorrect/#post-12620900)
 * Status: resolved