Plugin Author
malihu
(@malihu)
It’s impossible for me to say without seeing your page. Try enabling “Prevent other scripts from handling pluginβs links” option in plugin settings. Also, you don’t need the ps2id class on the target sections.
Also, make sure you’re using plugin’s latest version.
In general, a common issue is that some themes have their own function of scrolling in-page links, which might conflict with the plugin. When plugin is deactivated, does the page scroll smoothly or just jumps?
Now I can show you the site. Here is the link:
http://77d3d10e.ngrok.io/
I tried enabling the “prevent other scripts…” without success.
I’ve built the theme myself with Bootstrap without any scrolling feature. So there shouldn’t be any conflict I guess.
When the plugin is deactivated it just jumps to the section as expected.
Plugin Author
malihu
(@malihu)
I can’t access the URL you posted. I get Tunnel 77d3d10e.ngrok.io not found.
sorry, it was expired when you visited the page. This one should work now.
https://4f259126.ngrok.io/
Plugin Author
malihu
(@malihu)
Hello again,
I think your HTML template has an issue. You probably should look into header.php (if you built your theme with this template). Your HTML starts like this:
<!-- the_post() - this function keeps track on wich post we're working with -->
<!-- the_permalink() - links to the specific post -->
<!-- advanced custom fields -->
<!DOCTYPE html lang="de-DE" >
<head>
This is not correct.
It should be:
<!DOCTYPE html>
<html lang="de-DE">
<head>
Change it and let me know
Hi,
that was just a note. But I removed it anyway to see if would change something.
Still not working unfortunately
Plugin Author
malihu
(@malihu)
It’s not fixed. Please see the code I posted. This is not correct:
<!DOCTYPE html lang="de-DE" >
DOCTYPE and html are different tags. The html tag is required in HTML. Change the code to:
<!DOCTYPE html>
<html lang="de-DE">
Oh shame on me. How can I overlook that even after you’ve pointed it out. I was somewhat focused on those comments in the head. /:
That solved the problem. Thank you very much.
But another one has occurred. The highlight class is acting very weird.
Flickering, not on point, etc.
http://4f259126.ngrok.io/
Plugin Author
malihu
(@malihu)
No problem π
You still need to fix the missing opening html tag. Right now it’s:
lang="de-DE" >
It should be:
<html lang="de-DE">
Also, in plugin settings disable “Keep the current element highlighted until the next one comes into view” and “Highlight by next target” options. Save changes and let me know.
-
This reply was modified 7 years ago by
malihu.
Haha I eventually got it right and everything works like a charm now. Thx for the great support!
Plugin Author
malihu
(@malihu)
Awesome π Glad I helped.