WordPress.org

Support

Support » How-To and Troubleshooting » Page Anchor Not Working

Page Anchor Not Working

  • I have the following:

    link:
    <a title="contact us via email" href="http://notallthosewhowanderarelost.ca/about-us#contactform/"><strong>contact us</strong></a>

    anchor on “about-us” page:
    <a name="contactform" />

    It links to the correct page, but not to the anchor.

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • i think the anchor should be <a name="contactform">&nbsp;</a>

    I’ll try that.

    I originally wrapped the anchor tag around a word, but that didn’t work either. I’ll give this a shot.

    Hmm…still no.

    Links to the correct page, but doesn’t go to the anchor.

    Add a / between about-us and #contactform. I just tried it that way and it worked for me.

    Strange.

    My browser (up-to-date Rockmelt – based on Google Chrome) interprets the link to have a slash between about-us and #contactform because, when I click the link, there is a slash between the two in the address bar.

    I’ve tried adding the slash between the two on the page, but the same result. It goes to the about-us page and shows the …about-us/#contact form in the address bar, but doesn’t go to the anchor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page Anchor Not Working’ is closed to new replies.
Skip to toolbar