Plugin Author
malihu
(@malihu)
Hi,
The plugin is not currently enabled on your menu links. This usually happens because a theme might use a custom menu function that prevents “Page scroll to id” from auto-enabling on its items/links.
You can easily solve this issue in 2 ways (select the one that’s easier for you):
1.Add the class ps2id on your menu items – see tutorial:
http://manos.malihu.gr/page-scroll-to-id-for-wordpress-tutorial/#menu-links-alt-section
2.Change the “Selector(s)” option value in plugin settings to:
a[href*=#]:not([href=#])
and click save changes.
more info:
http://manos.malihu.gr/page-scroll-to-id-for-wordpress-tutorial/#links-section-no-rel
Using either way will immediately fix the problem.
FYI: The 2nd way is quicker but the 1st way offers more control (in case you need it).
Let me know if everything works.
I was in emergency I only tried the second way and it works (thank you). What do you mean when you say more control anyway?
Plugin Author
malihu
(@malihu)
The second way enables the plugin on all links with a hash (#) in their URL (i.e. on all links that point to same-page ids).
There are times (not very often) that you don’t want this.
For example, some plugins that add tabs, accordion etc. in pages, might conflict with “Page scroll to id”. This might happen because 2 or 3 scripts are simultaneously handling a link (e.g. script 1 wants to switch to a tab while “Page scroll to id” script wants to scroll to the target id etc.).
Most times everything will work without issues but there are times that you might have this problem. If you do, you’d want to enable “Page scroll to id” only on the links you want (which is the plugin’s default behavior).
Hope this helps.
I’m gonna mark this as resolved but let me know if you need more help.