# Create Anchor Links Manually with WordPress Block Editor

An anchor link is a link that allows you to jump to a specific section on a page. To create an anchor link in the WordPress block editor, you will need to do the following:&#x20;

In the WordPress block editor, add a heading block and type in your heading text.

In the heading block settings (found on the Advanced tab of the Headings Block), add an HTML ID to the Heading field. This will be used as the anchor link target.&#x20;

<div data-full-width="true"><img src="https://www.elegantthemes.com/blog/wp-content/uploads/2022/09/Create-Anchor-Link-in-the-WordPress-Block-Editor-1-3.png" alt="Create Anchor Link in the WordPress Block Editor 1-3"></div>

Once the ID for the heading element is set, we can select some text and add a hyperlink. Instead of a web address, we can add a pound sign (#) plus our element ID. Press enter and the link will apply to that text.

![Create Anchor Link in the WordPress Block Editor 4-6](https://www.elegantthemes.com/blog/wp-content/uploads/2022/09/Create-Anchor-Link-in-the-WordPress-Block-Editor-4-6.png)

&#x20;

Save your changes and preview your page to test out your new anchor link.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/wordpress/create-anchor-links-manually-with-wordpress-block-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
