• Hi there,

    I’m having an issue with the plugin hopefully you can help with.

    I’ve added a menu to the top of the page linked above so that visitors can easily scroll to the correct section using the plugin. I’ve added the anchor links with the plugin in WPBakery Page Builder using the buttons in the WYSIWYG editor (i.e. not shortcodes) with no extra settings included (classes etc.).

    For some reason when I click the link the smooth scroll is not working it shoots directly to the section. It’s only when I scroll back up and click the link again that the smooth scroll works.

    Do you have a solution for this?

    Many thanks,

    M.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    The issue seems to be coming from the Goal Tracker plugin which makes those links jump while preventing “Page scroll to id” (or any other similar plugin) from doing its thing. The script that does it is ...plugins/goal-tracker-ga/public/js/wp-goal-tracker-ga-public.js line 133.

    Firstly, try this:

    Go to “Page scroll to id” settings and enable “Prevent other scripts from handling plugin’s links” option and set the “Prevent other scripts from handling plugin’s links selector(s)” field value to:

    a[href*='#']:not([href='#'])

    Save changes and test.

    If the above doesn’t work you can try adding the attribute role="tab" to the paragraph containing your links. I’m not sure if you can do this via the WPBakery page builder(?)

    If none of the above works, we can add the attribute via javascript, so let me know if we need to do this and I’ll provide you with the exact code ??

    • This reply was modified 2 months, 1 week ago by malihu.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.