New and existing anchor points keep disappearing

  • Author
    Posts
  • #1040264

    nleviatan
    Member

    I believe there is a new bug with page jumps. Every anchor point I add disappears once I switch back to the Visual Editor or save a draft.
    All of my previously created anchor points are also gone.

    By comparing Post Revision I traced the page anchor deletion to between October 5 and October 11.
    Blog url: http://lokissciphile.wordpress.com/

    The blog I need help with is lokissciphile.wordpress.com.

    #1040493

    nleviatan
    Member

    I think I’ve found the solution. The “name” attribute is not supported in HTML 5. Instead of “name” use the “id” attributes. It’s a pity that WordPress HTML validation code just removed “name” instead of replacing it with “id”.
    Use <a id="jumphere">Here</a> instead of <a name="jumphere">Here</a>

    #1040501

    evitae
    Member

    Here (on WP support page: http://en.support.wordpress.com/splitting-content/page-jumps/) they advise the name and not id:

    And it had worked for some month until now! I think it is a bug or they has changed the algorithm without any message to users.

    #1040502

    evitae
    Member

    Hm, “code” tag doesn’t work also? I try with the backtick:
    <a name="top"></a>
    If it will be wrong, I give up.

    #1040503

    timethief
    Member
    #1040513

    evitae
    Member

    Dear timethief, that page says also the name tag but not id. I can say again: there is a WP bug or sudden and secret change here about :-)

    #1040514

    nleviatan
    Member

    evitae: name worked until a few days ago. Now, only the id attribute works.
    I think that WordPress changed their HTML validation algorithm to comply with HTML 5, broke a bunch of pages in the process without informing the user and forgot (or didn’t get around) to update the online documentation (last modified in August 2, 2012).

    #1040516

    evitae
    Member

    nleviatan, thanx! If you knew that how much work was in some of my recent pages to insert anchors and jumps…! To replace all the nameswith idswould be also a pretty much work. And joyful. I kiss the WP! Thanx to god that I has tried and applied the page anchors and jumps not long ago.

    #1040520

    hebrews110
    Member

    So do I have to reinsert hundreds of anchors? The pages still jump even though the code disappeared. I just write it differently from now on? I find it disconcerting that the code is just gone, even if it does still work.

    #1040525

    nleviatan
    Member

    hebrews110: In existing posts the name attribute disappeared (and page jumps stopped working) only after updating a post. As long as you don’t edit existing posts everything should be fine.

    #1040542

    hebrews110
    Member

    I edit those pages weekly. So I have to redo a thousand anchors–literally. This isn’t going to be fixed any other way?

    #1040543

    hebrews110
    Member

    I need more help with this. My “name” anchors didn’t have the words I was jumping to within the tag. I just pasted them above the place it was to jump to. What is the code so I can do that with the id tag? It would be way too much effort to insert it around some text. I have 700 and some to change! I just want to paste them in, change the number and move on.

    Also, am I going to have to change anything with the links that go to the anchors?

    Thanks for your help. I really need it.

    #1040544

    nleviatan
    Member

    The code for name and id is the same. After replacing “name” with “id” your links and page jumps should work exactly as before.

    #1040545

    hebrews110
    Member

    But all of my code is gone, I can’t just replace it. What is the code to use without any of the text inside of it?

    #1040557

    Howdy all,

    Please refer to this thread for updates on this issue.

    Thanks!

The topic ‘New and existing anchor points keep disappearing’ is closed to new replies.