How to add an anchor link in a WordPress page or blog

How to add an anchor link in a WordPress page or blog

Here is a quick tutorial for adding an anchor link to a WordPress page or blog.

    1. First we will assue that you want to link to a sub heading further down your page. This sub heading will be called Anchor Point. The link at the top of the post will be called Link to Anchor Point.
    2. Switch to HTML view in the WordPress editor and find ‘Anchor Point’. Add the a name attribute as shown here:
      <h2><a name="anchorname">Anchor Point</a></h2>
    3. At the top of the page, find ‘Link to Anchor Point’. Add the link attribute as shown here:

<a href="http://<WordPressURL>/<pagename_or_id>#anchorname">Link to Anchor Point</a>

  1. Make sure you change <pagename_or_id> to the page or post name or id and you change <WordPressURL> to your WordPress URL.