Do you want to create anchor links in your blog post?
If yes, then you are at right place. Here I’m going to show you two simple ways to create anchor links in WordPress Gutenberg Editor.
Undoubtedly, anchor links can improve user experiences. It helps readers to jump to their point of interest. It’s especially essential for long-form content.
Also, it adds value to your overall SEO as Google shows anchor links in SERPs.
So there is no reason to not using anchor links in blog posts. Here’s you’ll learn:
- What Are Anchor Links?
- How To Create Anchor Links Manually In WordPress
- How To Create Anchor Links Using A WordPress Plugin
What Are Anchor Links?
Anchor Links (also known as jump links or table of contents links) are links that navigate users to a specific part of a page.
Once you click on these links, it will automatically take you to a specific section or part of the post/page. They are also used to link an external page.
Let’s see a simple example:
Here in this post, we have a ‘Table of Contents’. When you click a link from the table of contents, it will take you to that specific part.
There are mainly two ways to add anchor links in WordPress.
Let’s see the manual way first.
How To Create Anchor Links Manually in WordPress
Adding Anchor links in your post is super easy and straightforward. WordPress makes it insanely easier in Gutenberg Editor. Now you can add anchor links without using a plugin.
Let’s find out how you can do it in Gutenberg Editor.
In the very first step, highlight the header and click on the “Advanced” from the right-hand side. Then enter the anchor text in “HTML Anchor” box.
Then just go back where you want to link it. Just select that text and link it with a # right before the anchor name. Check the screenshot given below:
You have successfully added anchor links to your WordPress Post manually.
How To Create Anchor Links Using A WordPress Plugin
Many WordPress users want to skip the HTML part and looking for an automatic approach. If you are one of them, you can use a table of contents plugin.
It lets you add a table of contents which is generated automatically from the headings available in the post or page.
Now let’s see how to add table of contents using the Ultimate Blocks plugin.
Step #1: Install & Activate The Plugin
You can install the plugin directly from the WordPress dashboard. Just go to Dashboard > Plugins > Add New and search for ‘Ultimate Blocks’.
The very first result will be Ultimate Blocks. Then just click on ‘Install Now’ and ‘Activate’ the plugin.
That’s it. You’re done.
If you want to upload the plugin manually, you can download the plugin from here.
Step #2: Add ‘Table of Contents’ Block
Now go the blog post where you want to add a table of contents. Then insert the ‘Table of Contents’ block on your blog post.
Once you’ve inserted the block, it will automatically generate a table of contents from headings.
Step #3: Configure Your Table of Contents
Now the great thing is, you can configure the table of contents as your needs and requirements. Here are the things that you can configure.
- Changing the title of the table of contents.
- Showing table of contents in one, two, or three columns.
- Changing bullet style for the table of contents (Bulleted, Numbered, and Plain).
- Choosing which headings to include or exclude.
- Enabling Show/Hide toggle for the table of contents.
Just watch this video to understand all of the configurations.
Yes, you can see all the changes as they happen.
So these are the two ways you can use to add anchor links in WordPress Gutenberg Editor.
While the manual way is very easy, you can consider using our plugin (Ultimate Blocks) to save time. Besides, it lets you configure everything you need. And not to mention that we have some other cool blocks.
Now let us know how do you add a table of contents to your blog posts.
And if you found this post useful, please help us by sharing this post on Facebook, Twitter, or LinkedIn.