Select link type, link to anchor in the text when linking to text on the same page or another page in the local website. Linking to an anchor in the text is a two-stage process.

  1. Create an anchor point on the page.
  2. Create a link to the anchor.

Creating anchor links

Step 1

Place the cursor where you want the anchor; this should be at the start of the section you want the link to jump to. Click the Anchor (flag) icon.

Don't highlight text to create an anchor as this will make that text appear as a link to nowhere.

Step 2

Insert a name for the Anchor and click OK.
For best cross-browser compatibility this should be plain text, lowercase, and use hyphens instead of spaces.

The Anchor point is created and identified in the editor as a red flag icon. This icon does not appear to non-admin users.

Step 3

Select the link text the user will click on to jump to the anchor point and click the link icon.

Change the Link Type to Link to anchor in the text. Select the Anchor by anchor name and click OK and Save the web page.


Linking to anchors in other fields

If the anchor link is in a different field to the anchor then the "Link to anchor in the text" list won't know about it. You can still link to this anchor manually by changing the link type to URL, and the Protocol to <other>. Then simply enter the hash and the anchor name. e.g. #my-anchor


Linking to anchors on other pages

The "Link to anchor in the text" link type will only show anchors on the current page, however you can link to anchors on another page by manually entering the anchor name at the end of the url.

e.g. /node/123#anchor-name


Linking to accordions

Anchors can also be used to jump straight to a specific accordion on a Structured Page by using the ID number of the accordion. This requires manually entering the ID number at the end of your link using the anchor # symbol.

e.g. /my-structured-page#2