Plugin Author
malihu
(@malihu)
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.
Hi,
Thank you, my site is wyred.co.uk. I won’t make any changes yet.
Thanks,
Simon
Plugin Author
malihu
(@malihu)
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 😉
Amazing, thank you very much, that work’s perfectly!
Great plugin and great support!
Thanks again,
Simon
Plugin Author
malihu
(@malihu)
Great 🙂
Marking this as resolved.