WordPress.org

Ready to get started?Download WordPress

Forums

Page Anchor Not Working (6 posts)

  1. Rockwell_77
    Member
    Posted 2 years ago #

    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?

  2. irfan_np
    Member
    Posted 2 years ago #

    i think the anchor should be <a name="contactform">&nbsp;</a>

  3. Rockwell_77
    Member
    Posted 2 years ago #

    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.

  4. Rockwell_77
    Member
    Posted 2 years ago #

    Hmm...still no.

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

  5. torlowski
    Member
    Posted 2 years ago #

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

  6. Rockwell_77
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic