WPIntell

Source evidence

Smooth Scroll not working

Page scroll to id · support · 2024-09-13T13:18:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 29 rows with source links

17.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mlbrock unresolved
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] 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 1 year, 8 months ago by malihu .

Comments

1 shown
malihu 2024-09-13T20:14:00+00:00

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 1 year, 8 months ago by malihu .