• Resolved newbie63

    (@newbie63)


    I set up an “anchor” on a static page on my site. I then tried to get a link in a blog/post to go back to that anchor. It didn’t work and I can’t figure out why not.

    I can’t get this to let me show you exactly what I put on the page–although I got the original idea from this source. One of you was able to tell me what to do to create an anchor, and I could see what to type in for code. Can someone help me know exactly what to add to link back to my anchor?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anchor:

    <a name="here"></a><h1>title</h1>

    Link to anchor:

    <a href="http://example.com/sample-post#here">You can read about it here.</a>

    Thread Starter newbie63

    (@newbie63)

    kjodle:
    Thanks for the response.

    Looks like I need to find the url for the page. Where do I find that? Remember, it is a page on my own site. Is it the Permalink, or somewhere else? That’s the http://example.com part, correct?

    Then, the sample-post#here part is the “here” part of anchor, or something else?

    sorry I’m such a dummy, but that’s the way it is. =-)

    Looks like I need to find the url for the page. Where do I find that? Remember, it is a page on my own site.

    It is in the title bar of your web browser. For example, the URL for this page is http://wordpress.org/support/topic/link-post-to-anchor-on-another-page-of-website?replies=3

    “here” is the anchor, and you can make it be whatever you want. The only important thing is that it has to be the same in both the post and the link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘link post to anchor on another page of website’ is closed to new replies.