MM Writes (
marahmarie) wrote in
style_system2010-11-28 11:44 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
Add "back to top" link to Transmogrified with s2 custom theme layer?
Many Dreamwidth s2/Core2 styles have the "back to top" link at the bottom of the Recent Entries view, but Transmogrified doesn't. I had the same problem on LJ, when I used the Bloggish layout with a custom style sheet and theme layer, but I couldn't solve it, not even by modifying s2 Mixit's code to fix the problem, because Bloggish lacked a "back to top" link in the HTML to hook the s2 to.
So my question is kind of two-fold:
Is there any way to get all the proper HTML (including the necessary but missing HTML links and the requisite s2 to make it all work) into Transmogrified, and if so, how?
Because my other problem is I cannot figure out how DW's s2 differs from LJ's version of it. So I would need someone to work out the code for me but hopefully someone who could also explain how s2 differs on DW from LJ's version (or at least point me in the right direction, if there's something I can read on that to make it more clear).
Because the way I figure it, if I can't read (that is, understand) the s2 on DW, I'll never be able to modify or write it. And I want to be able to do both.
So my question is kind of two-fold:
Is there any way to get all the proper HTML (including the necessary but missing HTML links and the requisite s2 to make it all work) into Transmogrified, and if so, how?
Because my other problem is I cannot figure out how DW's s2 differs from LJ's version of it. So I would need someone to work out the code for me but hopefully someone who could also explain how s2 differs on DW from LJ's version (or at least point me in the right direction, if there's something I can read on that to make it more clear).
Because the way I figure it, if I can't read (that is, understand) the s2 on DW, I'll never be able to modify or write it. And I want to be able to do both.
Oh my, it...
It broke my footer a little but that's just CSS so I can probably fix that, no probs. :)
So here's the thing: I knew Bloggish was missing the top link altogether - so I used exactly the same code you just gave me, more or less (meaning LJ's version of it, with the head HTML and DOC type and all that in it) to fix the problem on LJ once I realized I need to hard-code that top link in.
And still it didn't work. I would have tried more or less the same code you just gave me for my DW but with how different the functions are from LJ's, and with my previous failure on LJ to pull this off at all even knowing the code and functions as well as I did there, I figured I needed help, so thank you very much for jumping in there for me with this code.
Beyond that, Mat's comment below cleared up a lot of this for me - apparently I'm playing around in the wrong Core. If I was using Core1 I could probably figure out much of what I need to know on my own, but apparently, thanks to the rewritten functions for Core2, it's kind of like...I feel like I'm starting all over again, and I don't feel like I know what I'm looking at.
So if I had...almost like a cheat sheet I could look at that says "For function A, write it this way instead, and call it Function A1" I think I could figure a lot of this out, but I need to start there, I think.