Create anchor links for your blog post
1. Divide your blog post into the main sections and decide where you want your readers to jump to.
Anchors can be added to any text, including headings and paragraph text. For example, you might want to include a contents list at the start of a long article and allow readers to jump to the section that interests them.
2. Add an ID to the heading or paragraph you want readers to jump to by editing the HTML.
Your HTML code should look like this:
Part 3: LayersIf you’re using the base block editor in WordPress, you can also set an anchor ID in the advanced settings for a block.
3. To link to an external page, select the text for your link and add a hyperlink as you normally would, but append # and the ID you added in the previous step.
For example: https://example.com/article#manually-create-anchor-links-wordpress
4. To link within the same article, using the contents list mentioned previously, you don't need the URL, just # and the anchor ID.
For example: #manually-create-anchor-links-wordpress