WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Trouble with Jumping to an Anchor on Another Page

[Resolved] Trouble with Jumping to an Anchor on Another Page

Viewing 15 replies - 1 through 15 (of 21 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    Don’t know if it’s the problem – but you should be using “id” not “name” here:

    <a name="theprodigalson"></a>
    The Prodigal Son

    “name” is deprecated.

    WPyogi

    @wpyogi

    Forum Moderator

    Oh wait a sec, I’m confused about which is to and from – can you clarify that…

    Thanks!

    But, in the text where the anchor is, it says:

    That is the link to go to the page and the section of “The Prodigal Son,” and guess what? It worked right now when I tried. It went right where it is anchored.

    Strange . . . . it works from outside my site, but does not work from another page of my own Web site. Is this something to do with my being logged in to wp-admin?

    WPyogi

    @wpyogi

    Forum Moderator

    sorry, your link above did not work… No it should not make a difference if you are logged in or not. Can you just say where you want to go from and to?

    quote not showing . . .

    It is supposed to be .

    Yes, that is what it says at the anchor location.

    WPyogi

    @wpyogi

    Forum Moderator

    Or is it working?

    WPyogi

    @wpyogi

    Forum Moderator

    I’m not clear on which page you want to go from and which page to.

    WPyogi

    @wpyogi

    Forum Moderator

    I reread that, so try this – change this:

    <p id="farandnear">
    <strong>
    <span style="font-size: 22px;">Far and Near</span>
    </strong>
    </p>

    I think the other is okay.

    I mean this:

    <a name="theprodigalson"></a>
    The Prodigal Son

    Sorry.

    Both are working, except the TO anchor name #farandnear. It just goes to the page, but not to the anchored location. Here are the same links:

    TO:
    olivetjournal.com/the-lost-sheep-of-israel-identity#farandnear

    FROM
    http://olivetjournal.com/the-lost-sheep-of-israel-the-gospel#theprodigalson

    WPyogi

    @wpyogi

    Forum Moderator

    Okay so see the code I posted above – try that for the “to” part.

    No, it did not work.

    I have had a problem with the anchor at Far and Near before. It started working after a few tries, but not this time.

    May be an issue with anchoring? Text (html) looked fine. I use TinyMCE to program it.

    Thank you for trying hard, BTW, yogi.

    WPyogi

    @wpyogi

    Forum Moderator

    Nothing is changed on that page… this is the code I see:

    <p>
    <a name="farandnear"></a>
    <strong>
    <span style="font-size: 22px;">Far and Near</span>
    </strong>
    </p>

    Did you modify it in the TEXT editor and update it before switching editors?

    <p id="farandnear">
    <strong><span style="font-size: 22px;">Far and Near</span></strong>
    </p>

    is what I see, and I made sure it stayed there. And I tried it again, but did not work.

    Should I change the structure of the link FROM? It still says #farandnear at the end. Now it is “id” so then what should I put in there?

    Thanks.

    WPyogi

    @wpyogi

    Forum Moderator

    # is correct for “id” – but for some reason it’s not changing – look at the rendered HTML of the page – that’s not what is there. Do you have caching on your site.

    Are you using the TEXT editor and updating before doing anything else?

    <p id="farandnear"><strong><span style="font-size: 22px;">Far and Near</span></strong></p>

    Here s what I see, before and after updating, but nothing is happening.

    Does that break code “&np…” in front of the code have anything to do with it?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Resolved] Trouble with Jumping to an Anchor on Another Page’ is closed to new replies.
Skip to toolbar