Here is a quick tutorial for adding an anchor link to a WordPress page or blog.
- 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.
- 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>
- 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>
- Make sure you change <pagename_or_id> to the page or post name or id and you change <WordPressURL> to your WordPress URL.