Basker Docs

Anchor links

Give a block a readable anchor so that a link opens the page at that block.

Each block has an anchor. A link that ends with # and the anchor opens the page at that block.

Basker generates the anchor, for example #6aa2e5cb2ecd870bcd45a3a7. Set an Anchor ID to replace the generated anchor with a readable one, for example #parking.

Set an Anchor ID

  1. Open the page in the editor.
  2. Click the block header to expand the block.
  3. Open the Advanced tab.
  4. Type a value in Anchor ID, for example parking.
  5. Publish the page.

The link to the block is the page address followed by #parking.

Sites with a custom theme

On a site with a custom theme, Anchor ID shows only on the blocks where the theme enables it. The theme can also put the field in a different tab. See Block schema reference.

Anchor ID rules

  • Basker changes the value to lowercase and replaces spaces with hyphens when you save. Getting Here becomes getting-here.
  • The value must start with a letter.
  • Each Anchor ID must be different from all other Anchor IDs on the page.
  • An empty Anchor ID keeps the generated anchor.

A changed Anchor ID breaks old links

A link that uses the old anchor opens the page at the top. Update each link that uses the old anchor.

Copy the anchor

  1. Click the actions menu (the ··· button) on the block.
  2. Click Copy anchor link.

Basker copies the anchor, for example #parking. Add the anchor to the end of the page address to make the link.

Where to go next

On this page