Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] back to top links on pages suddenly stopped working (http://forum.bytesforall.com/showthread.php?t=20858)

rainbow Sep 2, 2013 10:39 AM

[SOLVED] back to top links on pages suddenly stopped working
 
On several of my pages, up-arrows next to each sub-heading that are linked to a "top" anchor have suddenly stopped working. They worked fine for years, and I haven't touched them. All the other anchors/tags on the pages work fine (there's a menu at the top of the page linking to anchors at various subheadings) - only the "top" anchor isn't working. I've been over and over the code, and I can't see anything wrong with it. I googled and found a solution (add id="top") for FireFox, but this is not a FireFox specific problem - they don't work in IE either.

Here are a couple of the affected pages:

mihansa.net/my-korean-drama-lists

http://mihansa.net/korean-drama-sageuk

What the heck am I missing??

juggledad Sep 2, 2013 12:29 PM

step (1) in debugging - disable ALL plugins and test again

rainbow Sep 2, 2013 02:22 PM

I fixed it, though I don't know why my solution worked - maybe you can help with that.

Since it was only the "top" tag/anchor that wasn't working, and all the other tag/anchors were fine, I postulated that it had to be something about that particular term. Perhaps "top" had been allotted to some other purpose in an updated version of WordPress, Atahualpa, or html (all of which have updated somewhat recently)? The solutions I ran across in my google search noted that tags/anchors are case sensitive, and must match each other. Mine all matched (lower case), but since that made uppercase essentially a different tag, I decided to change "top" to "TOP."

That corrected the problem for FireFox, but not for IE. In IE, it not only didn't jump to the anchor location (which was, surprise, surprise, at the top of the page), but instead jumped to the BOTTOM of the page.

I decided to try an entirely different term, and replaced "top" and/or "TOP" with "start." That works fine in all browsers, for whatever reason.

juggledad Sep 2, 2013 02:44 PM

Don't know, using 'top' works for me. But I'm glad you resolved it.


All times are GMT -6. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.