How to Add Jump Links and a Simple Table of Contents in WordPress

Help readers move through a long WordPress guide with clear heading anchors, a short contents list and a repeatable public-page check.
Laptop showing an illustrative website editor with blue and purple controls

A reader who opens a long guide often has one immediate question. Perhaps she already understands the introduction and wants the setup steps. Perhaps she finished the tutorial yesterday and returned for the troubleshooting section. A short table of contents gives both readers a direct route to the part they need.

You can build that route with ordinary WordPress headings and links. This guide uses a small, manually maintained contents list. It is useful when you want control over the labels and do not need another plugin simply to navigate one article.

Choose sections worth linking

Start with the reader’s tasks. A contents list should make the article easier to use, not reproduce every sentence that happens to be bold. Pick the main questions someone might want to revisit separately. For a practical tutorial, that could be supplies, setup, the actual steps, troubleshooting and a final checklist.

Keep the labels concrete. “Choose a container” tells a reader more than “The next stage.” “Check the published download” is more useful than “Important information.” The words in the list can be shorter than the headings, provided the destination still answers the question the link promises.

Use actual Heading blocks for the sections. Making a paragraph larger or bold does not give it the same structural meaning. The W3C guidance on headings explains how heading levels communicate organization. A normal article can use its title as the main heading, H2 for major sections and H3 for a subsection inside one of those sections.

Before adding links, read the outline on its own. If the sequence feels confusing without the paragraphs underneath, improve the outline first. A contents list makes weak organization more visible; it does not repair it. The website content brief guide can help you define the question each section should answer.

Add the destination anchor to a heading

An anchor is the name of a particular destination inside the page. In WordPress’s block editor, select the Heading block, open its block settings, expand Advanced and use the HTML anchor field. WordPress documents the process in its page-jump instructions.

For a section called “Choose a container,” enter choose-container in the anchor field. Enter the name without a leading hashtag. Later, the link pointing to that destination will use #choose-container. Keeping the destination name and the link address separate helps prevent a common copying mistake.

Use a short name beginning with a letter, with hyphens between words and no spaces. Choose one spelling and keep it consistent. Each destination needs a unique name within that page. Two sections both called supplies leave an ambiguous destination, even if their visible headings differ.

Write a small anchor map as you work: heading, anchor name and link label. This is especially useful when an article has similar sections such as supplies for indoor containers and supplies for outdoor beds. Give those destinations distinct names before building the list.

Build a contents list with ordinary links

Near the start of the article, add a short introduction such as “In this guide,” followed by a List block. Type the labels you chose, select each label and use the link control. For a destination on this same page, the address is the hashtag followed by the matching anchor: #choose-container.

A manually built list is deliberately simple. You decide which sections belong in it, how much explanation to include and where the list sits. The tradeoff is maintenance: when you remove a section or change an anchor, you must update its link. Moving a heading without changing its anchor usually leaves the address usable, but you should still check the resulting page.

When linking from another page, use the destination page address plus its fragment. For example, a fictional guide at https://example.com/container-guide/ would use https://example.com/container-guide/#choose-container. A bare fragment on your homepage points within the homepage; it cannot identify a section that lives in a different article.

If your editor already offers a suitable Table of Contents block, compare its behavior with the manual approach before adding a tool. WordPress.com describes an automatic option in its page-jump guide; that does not mean every self-hosted WordPress installation has the same block available. Use the controls actually present on your site.

A worked example: a balcony-garden planning guide

Imagine an unpublished article called “Plan a Small Balcony Garden.” This is a fictional website-editing example, not gardening advice. Its author has five sections: check the space, choose containers, collect supplies, plan maintenance and review the layout. A reader returning from a shop probably wants the supplies section immediately.

The author chooses the anchor garden-supplies for the heading “Collect your supplies.” The contents label becomes “Supplies checklist,” linked to #garden-supplies. The heading remains a normal H2. Nothing in this step creates a second page or a separate search result; it adds a useful destination inside the existing article.

Next, the author writes a related article about organizing a small storage cupboard. A contextual sentence can link to the full garden-guide address with #garden-supplies at the end. That link should land at the relevant checklist, rather than making the reader search through the entire garden article again.

During editing, the author renames the heading “A simple supplies checklist.” There is no need to rename the anchor just because the visible wording improved. Keeping the stable anchor preserves the existing internal link. If the section is later removed, the author must find and update the links that still promise that checklist.

This small record is enough for the example: destination heading, garden-supplies, same-page link, full cross-page link and the date of the last real check. It helps a future editor understand what the destination is doing without opening a separate technical system.

Save or publish the article, then open the actual public address. Do not treat a successful editor save as proof that the links work in the site’s template. Click each contents link and confirm that the right heading becomes visible. Check the browser address as well: its fragment should match the destination you intended.

Use the keyboard for a second pass. Move to the contents links with Tab, activate one with Enter and notice whether the destination and the following navigation remain understandable. Then try the narrow layout you normally use for mobile review. A list that reads well on a desktop can still have cramped labels or awkward wrapping on a small screen.

Test one full cross-page address by opening it directly, rather than arriving through the contents list. This catches mistakes that a same-page check can miss. If your site has a sticky header, check that the header does not hide the destination heading. Record that specific problem instead of assuming the anchor itself is broken.

Finally, compare every label with the content underneath its destination. “Download the worksheet” should not jump to a paragraph that merely discusses a worksheet. For download wording and file checks, use the separate guide to adding a downloadable worksheet.

Fix the common problems before adding another plugin

The page does not move: compare the link and destination character by character. Look for a missing hashtag in the link, a hashtag accidentally entered in the anchor field, a spelling difference or an anchor saved on the wrong block. Confirm that the public page contains the latest edit.

The link moves to the wrong section: look for duplicate anchor names. Give each heading its own name and retest any links that used the old one. An anchor name should describe one destination, not serve as a general label for several sections.

It works in the article but fails from the menu: check whether the menu uses only a fragment. Site-wide navigation often needs the full page address plus the fragment, because readers may activate that menu from many different pages. Keep the correction limited to the affected menu item.

A header covers the heading: this is a layout issue to review in your theme. Avoid adding repeated blank paragraphs as a spacing workaround. Ask for a targeted theme adjustment if needed, and check it at more than one width. Keep ordinary scrolling functional before considering decorative movement.

The article changed: update the contents list and the links pointing to removed destinations. Use the existing broken-link review workflow, while remembering that a page can load successfully even when a particular section destination no longer exists.

For a short article with only two obvious sections, you may not need a contents list at all. Add one when it reduces actual searching or repeat scrolling. Keep the final check simple: useful labels, unique destinations, correct addresses and a public page that takes the reader where the link says it will.

Next useful guides: write clear link text, review your navigation menu and check basic website accessibility.

We will be happy to hear your thoughts

Leave a reply

DIY Websites HQ
Logo