• Resolved simonjamesuk

    (@simonjamesuk)


    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/

    Thank you in advance.

    Simon

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter simonjamesuk

    (@simonjamesuk)

    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 😉

    Thread Starter simonjamesuk

    (@simonjamesuk)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Offset Issue’ is closed to new replies.