Create anchor links
You can create anchor links that jump to a particular place on the page. This is useful if you want to create a table of contents and/or link back to the top of a page from lower down. This is an advanced task, suitable for administrators who are comfortable editing content in HTML mode.
Step 1. Create your anchor
- Toggle the text editor into HTML mode
- Go to the part of your page that you want to link to
- Add an anchor tag link above the part you want to link to. Note that you don't have to have any text that appears on the page.
<a name="my-anchor"></a>
Step 2. Create your link
Either create your link in HTML:
- Remain in HTML mode
- Go to the part of the page you want to link from
- Create a link using the following code
<p><a href="#my-anchor">Go to my anchor</a></p>
Alternatively, create your link using the text editor toolbar:
- Toggle the text editor back to Rich text mode
- Go to the part of the page you want to link from
- Click the Link button in the text editor toolbar
- Choose Custom URL from the dropdown selector
- Enter: #my-anchor in the URL field
- Enter Go to my anchor (or equivalent) in the text field
If you want to link to your anchor from another page you will need to include the page in your link like this:
<p><a href="/pages/page-path#my-anchor"><Go to my anchor</a></p>