gestx
Forum Replies Created
-
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctHi,
I commented the line as you suggested. The expected effect is ok: the Divi script doesn’t load BUT something strange is happening and you should be able to help me.
The page / anchor you can test :
https://www.reponse-beaute.ch/boutique#ateliers-maquillageWhen I refresh the page the page is displayed completely and the position is TOP. All I have to do is move the mouse and the automatic scroll starts …
Is this a behaviour that can perhaps be adjusted with the parameters of your module?
Thank you very much for your help!
- This reply was modified 10 months ago by gestx.
Perfect, many thanks.
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctdone … Thank you.
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctHi Malihu,
Of course I can edit the files for testing, no problem.
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctThe “Table of Contents Plus” plugin has been disabled, the only change I did.
I saw the js error but don’t know why.
With the ‘?nowprocket’ in the URL you can load the page without cache.https://www.reponse-beaute.ch/boutique/?nowprocket#ateliers-maquillage
Does it help you ?
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctA big thank you for trying to find what doesn’t work.
I have deactivated the Table de Content plugin suspected of being a problem, but after refreshing the caches it doesn’t work.
I’m running out of ideas now…
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctHi,
You’re right, the firt scroll is smooth to the target when your plugin is desactivated.
So there must be another script that takes over and performs the first scroll.I use DIVI and there’s a ‘smooth scroll’ option that can be disabled, so I’ve disabled it. You can also do it via CSS. But that’s not enough, I think that the DIVI script continues to manage the scroll unless it’s ‘smooth’, quite simply.
After a few searches on the internet I couldn’t find anything about the DIVI script that handles scrolling. I also think that the script you mention is a script minified by my cache management and that it is therefore not the original script that can be modified. However, I found the script ‘/wp-content/themes/Divi/js/smoothscroll.js’ and excluded it from the minification.
I then added ‘/wp-content/themes/Divi/js/smoothscroll.js’ to your plugin, under Advanced options -> Prevent other scripts from handling plugin’s links selector(s).
Is this the correct syntax? Is the path correct?
My tests show that with this syntax it doesn’t work, there are always 2 scroll events, the first by DIVI and the second (correct, with the offset) by your plugin.
Thanks for your help.
Forum: Plugins
In reply to: [Page scroll to id] Page loads 2 times to be correctHello,
Thank you very much for your reply.
In my tests, the option ‘Use element’s custom offset (if it exists) when scrolling from/to different pages’ is already deactivated.
You have to understand that the page only reloads a second time when I move the mouse in the browser. So the page is displayed as it would be without the plugin, then when I move the mouse a second display (of the plugin) takes me exactly where I need to go.
When I deactivate the Page scroll to id plugin, the URL leads directly to the ID I need, but obviously without taking into account the 100px offset because the plugin is deactivated. I’m not quite sure what I’m looking for because I think a URL like…/#anID is interpreted natively in the browser by default (or am I wrong?). In any case, the page only loads once with the plugin disabled, and the scroll stops where it should but without the 100px offset.
So I can’t tell you if I have another script that runs to scroll the page.
I’ve had a look at several installed plugins but haven’t found any options relating to scrolling …
How can I find a script that does the scrolling?During my tests, I was careful to delete the cache and purge the CSS before changing each option.
Sorry I can’t do more at the moment, but you must be right, there is an initial display with a scroll before the display with the plugin.
Thanks