WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trouble with Jumping to an Anchor on Another Page (22 posts)

  1. Olivia
    Member
    Posted 1 year ago #

    Hi, Geniuses,

    It used to work, until I changed my Permalink from default to http://www.myblog.com/%postname%

    I made sure there is no "/" at the end of it, but still won't work. Here is the anchor I am trying to get TO:

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

    Since it is not working, I cannot direct you to the exact location, but here is the link to the page I am trying to get there FROM, and the link says (Part 2 - Far and Near) below the image:

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

    It's been a pain . . . Hope some genius can help me out.

    Thanks!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Oh wait a sec, I'm confused about which is to and from - can you clarify that...

  4. Olivia
    Member
    Posted 1 year ago #

    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?

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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?

  6. Olivia
    Member
    Posted 1 year ago #

    quote not showing . . .

    It is supposed to be .

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

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Or is it working?

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

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

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

  10. Olivia
    Member
    Posted 1 year ago #

    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

  11. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay so see the code I posted above - try that for the "to" part.

  12. Olivia
    Member
    Posted 1 year ago #

    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.

  13. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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?

  14. Olivia
    Member
    Posted 1 year ago #

    <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.

  15. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    # 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?

  16. Olivia
    Member
    Posted 1 year ago #

    <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?

  17. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No, that just mean "non-breaking space" - it should not be a problem. I don't know why it's not saving... Do other changes on your site show up okay? Do you have caching on your site? Where's it hosted?

  18. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    CRAP - it's fine - my browser was serving a cached page - ARGH!!

  19. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Sorry about that - sooo annoying when browsers do that kind of thing. So see if it's working for you - seems to be working right for me.

  20. Olivia
    Member
    Posted 1 year ago #

    Usually OK with updating. But, I do have problems here and there, like some changes just cannot be made.

    May be I need to log out and get back in . . .

  21. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It wasn't you - it was me :/ sorry sorry.

  22. Olivia
    Member
    Posted 1 year ago #

    Finally worked! Phew!

    I guess I need to log out and in when I have troubles like this. Other updates are usually fine, and other anchoring worked, but this one was just stubborn.

    Thank you so much for trying hard. But, I learned a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic