Dec 02, 2025
Arafat
8min Read
Anchor links, also known as jump links, are essential for enhancing the user experience and navigation on your website. Although you can find anchor links anywhere on a website, they are most often concentrated in website navigation menus or tables of contents.
If you want to know how to add anchor links in WordPress, you’re in the right place. This article is a comprehensive guide on creating WordPress anchor links. We’ll be covering three different methods – using the block editor, the classic editor, and a plugin.
We will explain what anchor links are, their components, and why you should consider using them. We’ll also provide use cases for implementing jump links on your WordPress site.
A WordPress anchor link is a hyperlink that allows users to jump to a specific section within the same page or another page. It consists of two main components – an anchor ID and a link to the element. When a user wants to read a specific section of your post or page, they can click the anchor link to get there.
Here’s some more detail about the components that make an anchor link functional:
When clicked, an anchor link takes you to a specific section further up or down on a page. These links are particularly useful for creating a seamless reading experience and helping visitors find relevant information quickly without scrolling extensively.
Anchor links offer many benefits. Aside from ease of use, here are a few reasons to consider adding jump links to your website:
From the above points, it’s clear that there are many benefits to using anchor links. Whether it’s a one-page website or a lengthy product page, site visitors will have better navigation. You can even add smooth scroll animations, which will further enhance the user experience.
To ensure your WordPress site runs smoothly while you incorporate anchor links, consider Hostinger’s managed WordPress web hosting solution solution. It offers optimized performance and our user-friendly hPanel. Plus, our expert Customer Success team is online 24/7 to help resolve any issues.

Use Cases for Anchor Links
To demonstrate, here are some use cases where jump links can be highly beneficial:
Anchors improve accessibility, enhance user engagement, and contribute to a well-organized web page. They’re especially handy for navigating long-form content, FAQs, documentation, or one-page websites where readers may want to jump directly to specific sections.
These internal links act as bookmarks, making your website navigation smoother and faster. You can also use them as custom links for A/B testing against an actual link.
Now that you understand their benefits and uses, let’s delve into the methods to create anchor links in WordPress.
There are various ways to create anchor links for your WordPress posts or pages. We’ll explore three easy methods – using the block editor, the classic editor, and a plugin. Each method offers its own set of advantages, catering to different user preferences and needs.
In this WordPress tutorial, we’re going to use a WordPress post to demonstrate.
Using the default WordPress content editor or the Gutenberg editor, you can add anchor links relatively easily. Follow the steps below to add anchor links using this visual editor:
Important! Note that it’s better to use one unique word for your ID. If you’re adding more than one word in the HTML Anchor field, don’t add a space between them. Instead, use hyphens (-) or underscores ( _ ). For example, we’ve named our heading “scalability-and-flexibility.” Avoid using any ID already added elsewhere on the page, and keep it relevant to the block content.
After adding the link, hit Enter on the keyboard or click on the curved arrow at the end of the textbox. Save your changes, and you’ve successfully added a jump link to your post.
Creating anchor links using the classic WordPress editor is technically similar to the block editor. You can manually add anchor links using this method by following these steps:
An alternative option for step three is to manually create the jump link in the Text editor. For that, you need to add the HTML <a> tag and the anchor ID text with the # prefix. It’s similar to adding a link to a text. In our case, it will look like the following HTML code:
<a href=”#scalability-and-flexibility”>scalability and flexibility</a>
After that, don’t forget to save your changes and check the live version to ensure that the link is working properly.
If you want to easily add anchor links, an option is to use the All in One SEO (AIOSEO) plugin. It can create a table of contents for your post or page and automatically add jump links to it. This is a great way to save time and add structure to your pages.
First, you’ll need to install the WordPress plugin from your dashboard by heading to Plugins → Add New. Then, activate the plugin so that it appears as a WordPress navigation menu item.
To add WordPress anchor links using AIOSEO, follow these steps:
So that is how you can create links and insert a table of contents automatically to your posts with the AIOSEO WordPress plugin.
Alternatively, you can use the Easy Table of Contents plugin to automatically display a similar table in all of your posts. This WordPress link-to-page section plugin has an auto-insert option that comes in handy for blogs and media sites.
Discover our complete AIOSEO tutorial for comprehensive installation and configuration tips.
Anchor links make your pages more organized and improve the overall user experience. After learning how to add anchor links to a WordPress site, most users will proceed with inserting a table of contents at the beginning of their posts.
However, be careful not to overuse them. Posts with too many anchor links can look cluttered. This might drive away visitors, which can harm your site’s reputation.
Therefore, when adding anchor links, it’s necessary to keep certain factors in mind:

In this article, we’ve explored the steps for creating anchor links in WordPress, delving into their benefits and the practical steps to implement them. Whether you’re a seasoned WordPress user or just starting out, understanding how anchor links work is crucial.
Anchor links not only enhance the structure and organization of your web pages but also contribute positively to your SEO efforts. They provide a smoother navigation experience for visitors, allowing them to quickly access specific content.
We’ve covered the methods on how to create an anchor link using the block editor, classic editor, and a WordPress anchor links plugin, offering flexibility based on your preference and experience level.
Remember to adhere to best practices and avoid overuse, ensuring your site remains user-friendly and efficient. Keep the helpful tips in this article in mind as you continue to refine and optimize your WordPress site. Good luck!
If you still have questions about how to create anchor links on a WordPress website, take a look at these WordPress anchor link FAQs.
There are several benefits of adding anchor links to your posts or pages. Primarily, they improve the user experience when used on long-form articles and pages. It helps users better navigate through your web page without needing to manually scroll to certain sections. Anchoring also helps search engines understand the overall structure of your site.
Your anchor link may not work due to syntax errors, incorrect anchor IDs, relative path issues, JavaScript conflicts, or CSS styles affecting visibility. To avoid such issues, ensure the link points to the right ID. Also, check for case sensitivity and browser compatibility. Troubleshoot accordingly by re-doing the process or using another method for a functional anchor link.
To anchor link to a different website, use the entire URL followed by the # symbol and the ID. Here’s an example: <a href=”https://otherwebsite.com/page#section-3″>Link to Section 3</a>. As such, anchor links in WordPress doesn’t always have to be an internal link. External anchoring is also possible.