WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I create an anchor and have it linked from an outside page (5 posts)

  1. AleOrtiz
    Member
    Posted 1 year ago #

    I can't create an anchor in my wordpress site to go to from an external page. Please help!

  2. michael.mariart
    Member
    Posted 1 year ago #

    How are you trying to do it now?

  3. AleOrtiz
    Member
    Posted 1 year ago #

    Hi, I inserted this code:
    <div id="EXAMPLEanchor">
The content of your div here
</div>
    and then tried the link as:
    http://www.mydomain.com#EXAMPLEanchor and
    http://www.mydomain.com#EXAMPLEanchor_div

    but the link goes to http://www.mydomain.com, not to the anchor.

  4. michael.mariart
    Member
    Posted 1 year ago #

    I've done the same thing myself in the past, and it's a simple mistake to make.

    What you need to do is set up an anchor link point:
    <a name="anchor1">Anchor Here</a>
    And link to that as
    http://www.mtsite/com/page#anchor1

  5. AleOrtiz
    Member
    Posted 1 year ago #

    Worked great! Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic