Creating anchor links

You can use anchor links to link to any point within the body content on the same 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. Here are the steps for creating anchor links:

Step 1. Create your anchor

  1. Toggle the text editor into HTML mode
  2. Go to the part of your page that you want to link to
  3. Add an anchor tag link this 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:

  1. Remain in HTML mode
  2. Go to the part of the page you want to link from
  3. 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:

  1. Toggle the text editor back to Rich text mode
  2. Go to the part of the page you want to link from
  3. Click the the Link button in the text editor toolbar
  4. Choose Custom URL from the dropdown selector
  5. Enter: #my-anchor in the url field
  6. 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/2-page-title#anchor"><Go to my anchor</a></p>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us