Archived topic
HTML footnotes > back to text not working anymore > any idea?
7 replies · Started by Christian on March 21, 2022
Dear Support Team,
my HTML (without a plugin) footnotes do not bring me back to the textnote anymore. I used a HTML like:
For the Textnote
<sup><a id="ref1" class="textnote" title="BELIEBIGER TEXT ALS TOOLTIP" href="#fn1">[1]</a></sup>
For the Footnote
<sup id="fn1" class="footnote">[1] <a href="URL" target="_blank" rel="noopener">TEXT-FUßNOTE</a> |<a title="Zurück zum Text." href="#ref1"> ↑</a></sup>
For a year or so it worked flawlessly. In the last weeks the footnote-back-link (↑) does not bring me back to the text. It is like rejected.
A sample page would be: https://kanzeon.de/das-leiden-des-siddharta/
with a lot of textnotes/footnotes.
I disabled pretty much all plugins, also the smooth-scroll functionality of GGP: no change.
So my question is: Did you change anything in GGP that might explain the behavior - or do you have any idea what is going on?
Thank you for any input,
Best,
Chris
Hi there,
looks like you're using the Scroll to ID plugin - do the links work correctly if you disable that ?
Hi David,
thank you for your fast reply.
The Scroll to ID plugin in fact is deactivated.
All caches are cleared.
I don't know, why it is visible to you.
I just again cleared all caches.
Hope you have a better view now...
Thank you for any help,
Chris
Those links are now working for me. Can you clear the browser caches and test ?
Ok - I am completely puzzeled right now.
Having cleared all caches several times today.
NOW the jumping is working.
The Scroll to ID plugin has been a workaround for 1. Jump to ID :-)) and 2. to add an offset regarding my sticky navigation.
In this regard two follow up questions:
Is there a workaround meanwhile for GGP to add smooth-scroll to any link target (jumplinks)?
Is there a workaround for adding a top-offset without running into the "Scroll to ID" problems?
Sorry for the confusion with the disabled Scroll to ID plugin.
Best,
Chris
Caches are the bane of our lives :)
So the GP smooth scroll will offset for the Sticky Navigation.
And to save having to add the CSS Class to every link you can wildcard it for all <a> elements using the PHP snippet provided here:
https://docs.generatepress.com/article/generate_smooth_scroll_elements/
YES Caches are suc...
I will dive into the PHP snippet - and for now I think this ticket is resolved.
WOW - so so fast.
Thank you David.
Best,
Chris
Glad to be of help