Hi, would you please help me?
I am currently changing my footnote anchors to include the popup shortcode in an effort to make reading long articles with lots of footnotes easier, however, I still want to include the scroll to the footnote feature.
I had been using the Scroll to Anchor plugin to offset the anchor position to compensate for the header, but this doesn’t seem to work with the popup shortcode. I want to use the popup shortcode, is there some JS or CSS I can use that will offset the anchor to compensate for the header?
The page I am testing this on is: https://hymnsocietygbi.org.uk/1971/01/11/treasure-no-35-hymn-writing-today/ the footnote anchors are halfway down the page.
Thanks in advance.
Ken
edit this is the code I’m using for the anchors:
Anchor in text:
[extra id="ref1" href="#fn1" title="Footnote 1" info="popover" info_place="top" info_trigger="hover" info_content="Text of footnote"]<sup>[1]</sup>[/extra]
Anchor in Footnote:
[extra id="fn1" href="#ref1" title="Footnote 1" info="popover" info_place="top" info_trigger="hover" info_content="Jump back to footnote 1 in the text."]<sup>1.</sup>Text of footnote goes here[/extra]
I’ve tried adding class=“anchor” and adjusting padding in the CSS but this has only moved the ‘sup’ number, not the scroll.
I’m sure it’s something really simple but it has me foxed.