• Resolved kaelenelliott

    (@kaelenelliott)


    How do I make an anchor link from clicking a word to a certain point on a DIFFERENT page. I’ve been looking into it and all I’ve found out how to do is make a clickable link that leads to a lower spot in the current page. What if I wanted it to bring you to a different page on my website but still in the middle of the page?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You’d reference the anchor in the link of the page you’re sending the user to, assuming it has one..

    <a href="link/to/some/page/#myanchor">Link</a>

    Thread Starter kaelenelliott

    (@kaelenelliott)

    I tried that and it still just brings me to the top of the page. How do I know what to put after the #?

    It will be whatever you called the anchor you placed on that given page..

    If your anchor looked like this..

    <a name="myanchor"></a>

    Then the link would look like my previous example.

    If a link points to an anchor that is non-existent, it’ll just default the screen position to the top.

    Thread Starter kaelenelliott

    (@kaelenelliott)

    ohh ok I see but where do I put
    <a name="myanchor"></a>

    In the page/post where you want an anchor to exist?

    Thread Starter kaelenelliott

    (@kaelenelliott)

    I figured it out thank you so much!
    I changed the status to solved but do you know if there is a way for it to also highlight the text that it brings you to?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Anchor links’ is closed to new replies.