Title: Offset Issue
Last modified: July 6, 2017

---

# Offset Issue

 *  Resolved [simonjamesuk](https://wordpress.org/support/users/simonjamesuk/)
 * (@simonjamesuk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/)
 * Hi,
 * Great plugin and I was wondering if you could help me get the offset function
   to work? I have the menu item set up correctly and it scrolls to the section 
   fine however because I use a header, it scrolls to the wrong place.
 * I have tried using pixels and also a selector (preferred option) but neither 
   work. I have also selected the option ‘Prevent other scripts from handling plugin’s
   links (if possible)’ but that has no effect either.
 * The theme I am using is [http://iwebdc.com/demo/ostrya/](http://iwebdc.com/demo/ostrya/)
 * Thank you in advance.
 * Simon

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

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9294895)
 * Well, you’ve followed the correct steps.
 * There’s a chance that the plugin cannot be enabled on your menu links automatically.
   If this is the case(?) try adding your menu links selector (which probably is`.
   menu-item a`) to “Selector(s)” field in plugin settings:
 * `a[rel='m_PageScroll2id'], .menu-item a`
 * There’s also a chance that the “Prevent other scripts from handling plugin’s 
   links” option cannot work as it depends on your theme’s scripts and how it applies
   javascript events on the links (if this is the case). I can’t really help in 
   such case without seeing your page though.
 * Is it possible to post your site/page link? I’d be able to check what exactly
   happens and probably find a solution if you could.
 *  Thread Starter [simonjamesuk](https://wordpress.org/support/users/simonjamesuk/)
 * (@simonjamesuk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9296279)
 * Hi,
 * Thank you, my site is wyred.co.uk. I won’t make any changes yet.
 * Thanks,
    Simon
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9297211)
 * Ok Simon, I just checked your site.
 * The case is indeed that “Prevent other scripts from handling plugin’s links” 
   option cannot do its thing automatically, so currently your links are handled
   by another script (not “Page scroll to id”). That’s why offset is not working.
 * The script that handles smooth scrolling in your theme is this:
    `...themes/ostrya/
   assets/js/scripts.js`
 * You need to edit this script and manually comment-out (`/* */`) or remove the
   code starting from line 63 to line 87 (the code starts where the comment “Smooth
   Scroll” is).
 * You basically need to do the following in order to sort-out everything:
 * 1. Edit the script above and disable all code from lines 63 to 87 (better comment
   the code instead of deleting it, so you don’t loose it completely).
 * 2. Add the value `.header-stick` in the “Offset” field in “Page scroll to id”
   settings.
 * That’s it. Test your links and everything should work as expected 😉
 *  Thread Starter [simonjamesuk](https://wordpress.org/support/users/simonjamesuk/)
 * (@simonjamesuk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9298143)
 * Amazing, thank you very much, that work’s perfectly!
 * Great plugin and great support!
 * Thanks again,
    Simon
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9298165)
 * Great 🙂
    Marking this as resolved.

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

The topic ‘Offset Issue’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/offset-issue/#post-9298165)
 * Status: resolved