How to Create Anchor Links in WordPress?

Making anchor links in WordPress is not much discussed, but it is one of the essential things for user experience and also for SEO. Anchor links are usually applied to the table of information since they assist drivers in progress and down a long article without reloading the page. It can additionally help with SEO as Google might show below the search listings of yours for navigation that is easy (more on this later).

In this step by step guide, we are going to explain what anchor links are and also teach you the way to incorporate anchor website links in WordPress quickly.

Let’s start with a living illustration of anchor links.

Below is a summary of all the subjects we are going to cover in this guidebook. Go on and click on these backlinks, and you will be brought to that particular segment.

An anchor link is a link type on the page which brings you to a particular place on that very same page. It allows users to go to the section they are most interested in.

As you can find, clicking on the anchor link takes the user to the particular segment on the same site.

Anchor links are usually used in lengthier articles as the table of information, allowing people to go to the areas they wish to understand quickly.

An average user usually spends less than a couple of seconds before determining whether they wish to stay or even leave the site of yours. You’ve only those few seconds to tell users to remain.

The most effective way to try and do that’s helping them immediately see the information they are searching for.

Anchor links help make this simpler by allowing people to ignore the majority of the information and go straight to the part that interests them. This improves user experience and also helps you win all new customers/readers.

Anchor links will also be excellent for WordPress SEO. Google can show an anchor website link within the research results as a jump to link.

So, now you have an excellent concept of anchor links and anchor text in WordPress, let’s take a look at the methods that you can use to add the anchor links in WordPress. There are two methods to add anchor links in WordPress. You can add manually, or you can use any plugin.

We will explain both ways in this tutorial. First of all, let’s take a look at the manual method.

Adding anchor links on WordPress Manually

In case you only want to add a couple of anchor links in the article of yours, and then you can quickly do so manually. Generally, you have to add two items for an anchor text to function as intended.

  • Create an anchor link with a # sign before the anchor text.
  • Include the id attribute to the content in which you would like the person to be used.

Let us begin with the anchor link part.

Phase one: Creating an anchor link

First, you have to pick the content that you would like to link and then simply click the insert link button within the WordPress Gutenberg editor.

Include a website link in WordPress

This will likely provide up the insert link popup in which you usually put the URL or maybe search for an article or perhaps web page to link. Nevertheless, for an anchor link, you will just make use of # as prefix and type in the search phrases for the food section you would like the user to go to.

Creating anchor link

After that, click the enter button to produce the website link. Many constructive suggestions on selecting what text to wear as your anchor # link:

  • Make use of the keywords associated with the section you’re connecting to.
  • Do not design your anchor link unnecessarily for a long time or even complicated.
  • Use hyphens to sort words as well as make them much more readable.
  • You can use capitalization in keywords to make it much more legible.

When you include the hyperlink, you are going to be in a position to find the website link you’ve caused in the editor. Nevertheless, clicking on the hyperlink does not do anything. That is because the browsers can’t see the anchor backlink as an ID.

Let us fix that by pointing browsers into the region, section, or maybe text that you would like showing when users click the anchor link.

Phase two: Include the ID attribute to the connected section

In the content material editor, scroll right down to the department that you simply would like the user to get through to whenever they click the anchor link. Generally, it’s a heading for a brand new section.

Then, simply click to pick the block, and then in the block settings, click the Advanced tab to grow it. You can just click the’ Advanced’ tab under the heading block settings.

HTML Anchor

Next, you have to put in a similar copy you included when the anchor link under the’ HTML Anchor’ field. Make sure that you add the text without the # prefix. You can right now protect the blog post of yours and find out your anchor website link in action by clicking on the review tab.

What if the food section you wish to show is not a heading but only a standard section or maybe some other block? If so, you have to simply click the three-dot selection on the block settings and select ‘Edit as HTML.’

Edit as HTML

This can enable you to alter the HTML code for that specific block. You have to pick the HTML label for the component you wish to point to. For instance, <p> if it is a table block, so on.

Now add the ID attribute with your anchor link’s word like this:

<h2 id="Your-keyword"> 

Now Save the changes, and you are good to go.

How to add anchor links in WordPress using a Plugin?

As you know, most of the problems are solved using plugins in WordPress. So, we are also going to use plugins in this case. You can use many plugins like

  1. Anchor plugin
  2. TinyMCE Advanced
  3. Table of contents Plugin

After downloading and installing the plugin, all you have to do is set some settings. Here is how to do that.

Step 1: Go into the post of yours and develop a hyperlink on the anchor text of yours. Instead of linking it to a URL, position, or page, you will assign it an anchor name with a # before it.

Add anchor -Create link with #
Add anchor -Create link with #

Step 2: Highlight the header you wish to relate it up to. And then, just click on “Insert” from the button at the top and then select “Anchor.” This button turns up in the editor due to the TinyMCE Advanced plugin.

Add anchor - Insert Anchor
Add anchor – Insert Anchor

Step 3: Type in the anchor name you provided it in Step one and then clicked “OK.” This plugin helps you save time since you won’t ever have to abandon the visual editor’s view. When you are doing it by hand with HTML, you’ve to bounce between the visible text and editor (HTML) views.

Add anchor - Assign ID
Add anchor – Assign ID

Our Favorite Method for Creating Anchor links in WordPress

This is an attractive, simple way of adding anchor text in your post. You can add the anchor links using the Easy table of contents without coding.

Easy Table of Content
Easy Table of Content

Adding Anchor text using shortcode

  • This is very easy to use; all you have to do is to put a shortcode for the easy table of contents, which is [ez-toc].
  • This plugin uses the H1-H6 heading for linking. When you click the title on the list, you will be navigated to that part of the page. And you can see a URL on the top.
  • You can use that URL to link any keyword on the page of other pages so that after clicking, the user will land on that part of the page.
Create Anchor Links in WordPress!Click To Tweet

Conclusion

This was all about the anchor link WordPress solution. Now you just have to implement it. If you are facing any issues, you can just ask in the comment section.

What we do Best

WordPress
Maintenance
you Need!

WordPress Updates

Security Checks

Daily Cloud Backups

Speed Optimization

Premium Plugins

Developer Consultation

Leave a Comment

Your email address will not be published. Required fields are marked *