You may notice I have a “Back to Top” link at the bottom of my story pages. The problem is that the “#top” tag I insert into that link is recognized just fine by IE, but not by Firefox (and Google Chrome, I’m told, though I haven’t checked it). How can I get around it?
- I’ve tried inserting an id=”top” in the uppermost element of my page, but that doesn’t take me to the TRUE top of the page.
- I know I could insert the full URL for the page, but that’s actually reloading the page, and has that slight hesitation which I don’t want.
- It’s WordPress’s template which I need to get into, but I don’t really want to learn PHP, altho I know I probably should. *g*
Does anyone know some quick PHP code which I could use that acts like an anchor tag? Or some other trick which would accomplish the same thing? If not I’ll probably either take the link out (I know it’s not totally necessary but I like it), or use option #1. Thanks.
Additional grumble: The “insert link” feature of WordPress doesn’t work in the Visual tab in Firefox, unless I’m doing something wrong. I have to add links via HTML or use IE (which is what I’m doing now, irritating). *grr* Time for lunch.
Would this work by adding it to each page?
Back to top
Brilliant, worked perfectly in IE and FF! 🙂 I Googled this and no one else mentioned such an easy solution! They all had complicated PHP suggestions. *LOL* No idea if it works in Chrome, but someone who uses that browser let me know, okay?
Thanks, Pippin! 🙂
Yes, it works in Chrome too. 🙂
Great! I don’t suppose you want to check Safari, iPhone, Blackberry, iPod Touch, and Palm for me too, huh? *vbg* Just kidding. Thanks for your help. 🙂
(Dang, you users use a lot of different browsers. Don’t tell me now I have to worry about the mobile browsers too! *groan* Ah well, the wave of the future, I suppose.)
Oops … attribute is: “#header”
Yeah, I got it from the previous post, thanks. 🙂