WordPress.org

Forums

Page jumps (anchors) don't jump - they load a new page (2 posts)

  1. marcomancosu
    Member
    Posted 3 years ago #

    Hi

    I'm trying to create anchor links to chapters/text inside my post.

    I followed the instructions here:
    http://en.forums.wordpress.com/topic/anchors?replies=7#post-234513
    and here:
    http://en.support.wordpress.com/splitting-content/page-jumps/

    and I created the proper code in the html view, using the
    Link code: VisibleTextLeadingToTarget
    and the code for the Invisible target:

    What happens is that the anchors work but they open a new page - opening it in the right place where I had put the anchor.
    But what I want is them just to jump tp the anchor in the page - not to open a new tab and load again the whole page.

    So, it looks like that even if I create the code just using as text for the href "#anchor", wordpress changes it in "nameofwebsite.it/#anchor", and this brings to the loading of a new page rather than just the jumping to the anchor in the same page already loaded.

    If you want to see an example in my website, check this page:
    http://www.ottimizzazione-pc.it/avvio-di-windows/rimuovere-tipi-di-carattere-essenziali-dalla-cartella-fonts-in-sicurezza/
    The code I have added in the html view in wordpress is:
    Metodo 1
    but what I see in the source code once the page is loaded is
    Metodo 1

    Could you please help me to understand why wordpress is adding the whole url to the anchor?????

    Thanks

  2. MarceFX
    Member
    Posted 2 years ago #

    Hi,

    Did you fix it? I'm suffering the same issue:

    This is what I see on the WP HTML editor (article link):

    <h2>Índice</h2>
    <a href="#quees">¿Qué es Dropbox?</a>

    But this is what it actually loads up on the browser:

    <h2>Índice</h2>
    <p><a target="_blank" href="#quees">¿Qué es Dropbox?</a><br />

    I have no idea why the "blank" atribute is added. I've also checked all plugings, but I think any of them is causing this. I have another post pages with internal links. None of them is behaving the same way. It looks like it only affects anchor tags.

    Any ideas?

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.