Hi, everyone. I've been meaning to ask this question for years: a long time ago foxfirefey gave me some code to have a "back to top" link with because Transmogrified didn't have one. Later on, she modified the code because it kept moving around on page re-sizing. Her mod solved that problem but possibly begat another: the jumplink doesn't clear short entries/pages with little content.
While this doesn't normally affect .page-tag, .page-icon, .page-archive, .page-recent, .page-read, or .page-network (but it could; the content on those views just happens to be long enough to clear the jumplink) it affects some .page-month views and short entries, reply views with short comments being replied to, reply views where the post and comment form combined won't clear the jumplink, and so on.
Here's an example of the problem in viewable action, seen in the month view.
In playing with the live HTML editor in Firefox the other night I realized I can make the jumplink clear - and stay in place - even with little page content present only if I put it in a pretty weird part of the HTML; it looks like I'd have to take it out of
$this->print_body(); and move it to
$this->print_module_section("two"); right before the
<div style="clear:both"> that's there to clear the footer.
This is a screencap of where the jumplink would need to go, according to live HTML editing: https://marahmarie.dreamwidth.org/file/
My s2 layer is public and viewable here: my s2 layer.
That said, if anyone can think of a better spot for it in the s2, I'm open to any and all ideas! Fwiw, I've tried CSSing it into clearing but so far, without any luck.
I can't write original s2 nor modify s2 like this (only the simplest snippets of it; this unfortunately didn't qualify) so I'm curious if anyone knows how to move the jumplink without breaking other things (which I actually did three times before giving up the other night in live code: every time I went into our compiler and tried to move it where the HTML live editor seems to think it should go, my sidebar wound up resting in my content body, while my content got pushed clear off the top of the page, so whatever I was trying to do to get this right was not working).
Any help is gladly appreciated!