wordpress - how to configure a down page link?

by styler
5 replies
Hi,

For an event page I am building in wordpress, I would like to have the feature where if I add "Register Now" in the copy, I can link it to the bottom of the page where the webform is...so if the person clicks on the hot link it will automatically take them to the bottom of the page.

Anyone know how to accomplish this?

styler
#configure #link #page #wordpress
  • Profile picture of the author Abledragon
    In your HTML view create an 'a name' tag:

    <a name="any-name-you-want"></a>

    Place that tag immediately before the point that you want them to jump to.

    Then make the 'Register Now' text into a link with this format:

    <a href="http://your-site.com/the-page/#any-name-you-want">Register Now</a>

    If you're on WordPress you need to put the full URL as above. If you're on a straight HTML site you can just use the #any-name-you-want as the href.

    Cheers,

    Martin.
    Signature
    WealthyDragon - Earning My Living Online
    {{ DiscussionBoard.errors[3814142].message }}
    • Profile picture of the author styler
      thanks so much Martin!
      {{ DiscussionBoard.errors[3818032].message }}
    • Profile picture of the author SteveJohnson
      Originally Posted by Abledragon View Post

      If you're on WordPress you need to put the full URL as above. If you're on a straight HTML site you can just use the #any-name-you-want as the href.
      Why would you say that? Named anchors work on a WP-generated page just as they do on any other page...:confused:
      Signature

      The 2nd Amendment, 1789 - The Original Homeland Security.

      Gun control means never having to say, "I missed you."

      {{ DiscussionBoard.errors[3818744].message }}
      • Profile picture of the author Abledragon
        Originally Posted by SteveJohnson View Post

        Why would you say that? Named anchors work on a WP-generated page just as they do on any other page...:confused:
        Only that whenever I've used named anchors on my WP sites they require the full URL to work. I don't know why - that's just my experience.

        Cheers,

        Martin.
        Signature
        WealthyDragon - Earning My Living Online
        {{ DiscussionBoard.errors[3819995].message }}
        • Profile picture of the author SteveJohnson
          Originally Posted by Abledragon View Post

          Only that whenever I've used named anchors on my WP sites they require the full URL to work. I don't know why - that's just my experience.

          Cheers,

          Martin.
          Interesting. I use them quite a lot and have never ran into that.
          Signature

          The 2nd Amendment, 1789 - The Original Homeland Security.

          Gun control means never having to say, "I missed you."

          {{ DiscussionBoard.errors[3820088].message }}

Trending Topics