The Anchor macro allows you to add a target to a specific part of a page so that a link can be added to jump the reader to that section. These can be especially useful for allowing your readers to navigate to specific parts of a long document. Anchors are invisible to the reader when the page is displayed.

For more information on using anchors see Link to an anchor on a page.


To add the Anchor macro to a page using the new editor:

  1. In the Confluence editor, select View more
  2. Find and select the Anchor macro

    tip/resting Created with Sketch.

    You can also enter /anchor to find and select the macro

  3. Give the anchor a name.  This name will be used when creating the link that leads to the anchor, and the name will be part of the link's URL.
  4. Select Insert


To add the Anchor macro to a page using the legacy editor:

  1. In the Confluence editor, select  > Other Macros
  2. Find and select the Anchor macro
  3. Give the anchor a name.  This name will be used when creating the link that leads to the anchor, and the name will be part of the link's URL.
  4. Select Insert

Wiki markup example

Wiki markup is only supported in the legacy editor.


robotsnoindex
robotsnoindex

Wiki markup is useful when you need to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: anchor

Macro body: None.

{anchor:here}