Title: Scroll offset working but highlighting offset does not
Last modified: January 23, 2021

---

# Scroll offset working but highlighting offset does not

 *  Resolved [jrp1](https://wordpress.org/support/users/jrp1/)
 * (@jrp1)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/scroll-offset-working-but-highlighting-offset-does-not/)
 * First off, thank you for the great plugin and fast support. You’ve done really
   great work here and I appreciate it.
 * I’ve managed to get everything working that I’d like to, including the offset.
   However the offset does not seem to apply to the “mPS2id-target” class that is
   applied for highlighting.
 * I have a scrolling / fixed menu, and the offset has helped me position it in 
   the correct place. The issue is that the highlighting is still appearing below
   my menu, as if the offset is not being applied to that at all.
 * How can I tweak the JavaScript so it honors the same offset and adds to the total
   pixel length of the element?
 * Hope this makes sense. Thanks!

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

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/scroll-offset-working-but-highlighting-offset-does-not/#post-13946583)
 * Hello,
 * The offset does not really correlate to section highlighting. Links get highlighted
   when their respective section’s main part is within user’s viewport.
 * If the section’s main part is within the viewport, it’ll get highlighted.
 * Does this make sense?
 *  Thread Starter [jrp1](https://wordpress.org/support/users/jrp1/)
 * (@jrp1)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/scroll-offset-working-but-highlighting-offset-does-not/#post-13946605)
 * Ah, I understand. I was thinking it was like the Wikipedia footnotes section (
   which is actually my intended purpose).
 * Example: [https://en.wikipedia.org/wiki/Favicon#cite_note-msdn-4](https://en.wikipedia.org/wiki/Favicon#cite_note-msdn-4)
 * Thank you, I will mark this as closed 🙂
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/scroll-offset-working-but-highlighting-offset-does-not/#post-13952356)
 * No problem 🙂
 * The Wikipedia footnotes section works (or should work) the same as “Page scroll
   to id” (although there’s no offset in Wikipedia page). This said, I can’t really
   be sure about the issue unless I see your page/site.

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

The topic ‘Scroll offset working but highlighting offset does not’ is closed to 
new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/scroll-offset-working-but-highlighting-offset-does-not/#post-13952356)
 * Status: resolved