In WordPress, you can add links in a variety of methods. For example, you may add links to your articles, pages, navigation menu, sidebar widgets, footer section, and other areas.

We will teach you how to add a link in WordPress articles in this thorough beginner’s guide. And how to include links in pages, widgets, navigation menus, and other areas.

Why Are Links Necessary?

Links are the internet’s lifeblood. As a result, they are essential. Most websites on the internet are linked together; that’s why the phrase “web” or “World Wide Web” was coined in the first place.

The hyperlinked text, buttons, and other components are examples of this. You navigate from one page to another or one website to another. Consider browsing a website that has no links for you to click on. You’ll have no choice but to use your browser’s back button.

Links on particular websites direct readers to where they may go to find additional information. By strategically putting links on your website, you may maximize the amount of time people spend on your site. It also assists users in discovering additional material.

In addition, purchase from your online store. Alternatively, sign up for your email newsletter. That being stated, let’s look at how to create links in various places on your WordPress website quickly.

How to Insert Link in WordPress Posts and Pages?

WordPress makes it extremely simple to include links in your blog posts and pages using the block editor.

To do this, Modify your existing post or page, or start a new one.

Next, highlight the text that you wish to connect the link to. This selected text is referred to as the link’s anchor text. Now, click the ‘Link’ button:

You’ll see a box where you can type in a URL. A URL is a web address. Copy and paste the URL of the post or page to which you want to link, as shown below:

Image Shows Ulr Link

To put the link into your post, use the Apply (Enter) button. For example, suppose you’re connecting to a page on your website. Then it could be easier to look for it. Enter a few words from your content title. And WordPress will discover it.

Image Shows Url Link

Click the title of the page or post to which you want to connect, and it will add the URL for you immediately. To include the URL in your article, click the Apply button once again.

If you want your link to open in a new tab, do so. Then, click the drop-down arrow on the right you will find an option to make your link open in a new tab.Image Shows Url Link

Add a Link in the Old WordPress Editor

Suppose you’re using the traditional editor rather than the block editor. The method for creating a link is, therefore, quite similar.

Open the post you wish to edit or start a new one. Next, find and highlight the text you want to use as the link’s anchor. Then, press the ‘Link’ button, displayed in the first row of toolbar buttons.

Image Shows Url Link Button

Then paste the URL to which you want to link Or, as with the block editor, search for it.

Directly pasting your URL into the anchor text

Another faster approach is to add a link in both the block editor and the traditional editor. Then, it is just a matter of pasting the URL into the anchor text.

First, copy the URL to which you want to connect, then in your post, highlight your chosen anchor text. To paste the URL, either right-click and choose ‘Paste’ or hit Ctrl+V (Windows) or Command+V (Mac).

WordPress will recognize that you are pasting a URL. And will convert the anchor text into a hyperlink.

Image Shows Directly Pasting Your Url Into The Anchor Text


How to Add Links to Text Widgets in WordPress

WordPress allows you to add widgets to non-content sections of your site, such as the sidebar, footer, or other widget locations.

Some of these widgets are pre-programmed. And there aren’t many alternatives. The Recent Posts widget, for example, will automatically display links to your most recent posts. There is no need for you to do anything else.

However, if you want to include some custom text with links in your sidebar, you may do so. You can then use the Text Widget. First, navigate to the Widgets section of the Appearance menu. Then, drag the ‘Text’ widget onto your sidebar or other widget areas.

After that, you can enter your text. And insert a link in the same way you would in a post or page.

Image Shows Insert A Link

After making modifications, be sure to click the ‘Save’ option beneath your widget.

How to Include a Title and a Nofollow Link in WordPress Links

It’s a good idea to give your links a title. It is the text that is shown. When someone moves their mouse pointer over the link, it will look like this:

Image Shows Link In Red

Adding a title frequently clarifies where the link links. It might be beneficial or even reassuring to your readers.

However, the default editor in WordPress does not enable you to add titles to links. Nevertheless, you may still include it. And we’ll show you how in a moment.

External links should also include a no-follow tag. It instructs search engines not to attribute your site’s SEO score to that link because you do not own or control the website’s content. WordPress does not, by default, support nofollow.

Method 1: Install the AIOSEO plugin in Gutenberg.

The All in One SEO plugin (AIOSEO) for WordPress automatically inserts the title, nofollow, and sponsored tags. And you may add UGC characteristics to your links.

Image Shows Install The Aioseo Plugin In Gutenberg.

Method 2: In Gutenberg, use HTML code.

Suppose you don’t want to use AIOSEO and are using the Gutenberg editor. Then you must manually update the HTML to add the title. In addition, add nofollow properties to your links.

First, include your link into your paragraph block as usual. Following that, click on the three vertical dots. And then choose ‘Edit as HTML,’ as seen here:

Image Shows Edite As Html Button

You should now be able to see the HTML code for your block.

Image Shows Html Code For Your Block

You may add a title and/or a nofollow attribute to the link by doing the following:

<p>You can find out more about our company on our <a href="" title="About Us" rel="nofollow">About Us</a> page.</p>

You may modify the title from “About Us” to whatever you like. However, it should always be rel= “nofollow” when using the nofollow tag.

Remember to include double quote marks around the title. And the “nofollow” because your link will not function correctly without these.

Method 3: Use a Plugin in conjunction with the Classic Editor

Suppose you’re working with the Classic Editor. The title can be installed and activated. Also included is the Nofollow for Links plugin. This plugin will add a title and a nofollow link. In addition, sponsored checkbox options have been added to the insert link window.

Highlight your anchor text and then click the ‘Link’ button, followed by the cog:

Image Shows Plugin In Conjunction With The Classic Editor

You’ll then see the following additional options:

Image Shows Insert/Edit Link Options

How to Insert Link Buttons in WordPress

Would you want to add a button to one of your WordPress posts or pages? You may do this in several different ways. The simplest method is to use WordPress’s built-in Button block.

Make a new blog post or page. Alternatively, you may modify an existing one. Then, to add a new block, click the (+) symbol. Next, choose ‘Button’ from the ‘Layout Elements’ menu.

Alternatively, look for the Button block.

Image Shows Link Buttons

By clicking on the colored box, you can write the text for your button. Then, in the ‘Link’ box, enter the URL to which the button should lead.

Image Shows Link Button

To adjust the orientation of the button. Alternatively, you may make the text bold or italic. Utilize the controls at the top of the block. You could, for example, want to modify the hue. You may make the border broader.

You may also modify the connection settings from this page. For example, you can specify that your link should open in a new tab. You may also add the ‘nofollow’ attribute to the association by entering it in the ‘Link rel’ box if you wish.

Image Shows Add Title

The right-hand panel allows you to change the look of your button and how the link functions.

What if you’re still using WordPress’s old classic editor? To effortlessly build buttons, use the “Forget About Shortcode Buttons” plugin. At the same time, you’re working on a post or page.

Download and run the Forget About Shortcode Buttons plugin. Then, either make a new post or modify an existing one. On the right side of the toolbar, you’ll notice the ‘Insert Button’ icon:

Image Shows 'Insert Button' Icon

A popup will display when you click the button. You may personalize your button here by selecting colors, borders, text, and an icon. In addition, while viewing a live preview, provide the URL itself.

Image Shows Edit Button

How to Embed Linked Content in WordPress

Particular sorts of the material may be readily embedded in WordPress by adding the URL to your post. It is frequently referred to as inserting a “content card” into your post.

Please copy and paste the entire URL into its text block. The full tweet, including photos, likes, and the timestamp. And you can insert more in the same way:

For YouTube videos, the procedure is the same. First, search YouTube for the video you wish to utilize. Also, copy the URL from your browser’s address bar at the top:

Image Shows Embed Linked

Copy the URL and paste it into your post or website. The video will be automatically embedded, in addition to being ideal for Twitter postings and YouTube videos.

This approach is also applicable to a wide range of different sorts of content.

How to Insert Affiliate Links in WordPress

Do you wish to enhance the earnings of your website by employing affiliate links? Many blogs and websites rely on affiliate marketing for consistent revenue.

All you have to do is include unique referral links to the items and services you suggest. Then, when your visitors buy these items after clicking on your links, you will be paid a commission.

The issue that most newcomers face is that each product is unique. Or the URL for the website they wish to promote is different. It’s challenging to keep track of these, especially if you are promoting many items.

Using an affiliate management plugin is the easiest method to add and manage affiliate links. Pretty Links or Thirsty Affiliates are both recommended.

Both of these plugins function by generating redirect URLs like That directs users to your unique affiliate link.

The plugins will add a new menu item to your WordPress dashboard. Here’s where you may put your affiliate links. It is how it appears with ThirstyAffiliates.

Copy and paste your unique affiliate link into the ‘Destination URL’ field.

Image Shows Affiliate Links

On the right side, you may choose particular parameters for your connection. For example, deciding whether to nofollow it, opening it in a new window/tab, and other options.

Image Shows Link Options Button

When you’re finished, click the ‘Save Link’ button. After you’ve established your affiliate links, they are simple to incorporate into your articles and page. First, click the down arrow in a paragraph block. Then click the ‘Affiliate Link’ button:

Image Shows Affiliate Link' Button

Next, enter the beginning of whatever you called that affiliate link. In our case, that would be “Our Affiliate Partner.”

Image Shows Link Button

You may then select the name by clicking it. And then, click the ‘Apply’ button to add the affiliate link to your post. If you ever need to update an affiliate link (for example, the firm you’re connecting to changes affiliate programs). Then that’s a piece of cake.

You need to make one modification in your dashboard, under “ThirstyAffiliates” or “Pretty Links.” The redirect link is unchanged. However, it will now redirect to the new affiliate link wherever it is used.

How to Add a Link in HTML Manually

You may wish to use HTML code to add a link to your site from time to time. For example, if you need to utilize a custom HTML block or widget, this might happen.

You may also need to edit a link directly in your theme file. Remember always to utilize a child theme to avoid losing your modifications when the parent theme is updated.

It is simple to build a link with HTML. So, to give it a go, include a custom HTML block into a post or page. You may find this block in the ‘Formatting’ section.

You may also use the search box to find it.

Image Shows Custom Html Button

Following that, you’ll see a box where you may type HTML. Next, copy and paste the following code into the box:

<a href="">Text</a>

That is how it should look:

Image Shows Link

To preview how your code will appear in your post or page, select the ‘Preview’ tab:

Image Shows Preview Button

Return your attention to the ‘HTML’ element. Change the URL to the URL you wish to connect to. Change the term ‘Text’ to whatever you like. Or the words you want to use for your link.

To add a title to your link, insert it in the code like this. Next, You may modify “This is the title” to whatever you wish.

<a href="" title="This is the title" target="_blank" rel="nofollow">Text</a>

If you want your link to open in a new tab. Simply add target=” _blank” to the HTML code, like shown:

<a href="" title="This is the title" target="_blank" rel="nofollow">Text</a>

If you want your link to be followed. And rel= “nofollow” as in:

<a href="" title="This is the title" target="_blank" rel="nofollow">Text</a>

Yes, You can add all of them at the same time. It is an example of a link with a title. That opens in a new tab and is unfollowed would appear like this:

<a href="" title="This is the title" target="_blank" rel="nofollow">Text</a>

In HTML, this is how you link. If you ever find yourself in this situation.

How to Add Anchor Links in WordPress Quickly

An anchor link is a sort of page link. It takes you to a specified location on the same page. It enables users to quickly navigate to the area of the site that they are most interested in.

These kinds of connections are pretty helpful when creating lengthy lessons or material. As a result, your users will be able to quickly go to the part they are most interested in.

If you only want to provide a few anchor links. Alternatively, bookmark links in your post. Then you may easily do it by hand.

To make an anchor text operate as intended, you must add two things:

  • First, make an anchor link by putting a # symbol before the anchor text.
  • Add the id attribute to the text that will take the user to the destination.

How to Add Social Share Links to WordPress Quickly

Do you want to include social sharing links or buttons on your website?

These links allow your readers to share your content on their preferred social networks easily. Sometimes social share buttons or links are accompanied by a total share count.

Image Shows Social Share Links

We do not recommend that users manually add these links. Instead, always utilize a social sharing plugin.

Add Hyperlinks to Images

Follow these instructions if you want someone to be directed to another website when they click on an image:

  • Using the Image Block, you may add an image to a post or page.
  • Click on the image. And then click the link button (it looks like a link from a chain.)
  • A box will appear in which you can enter your URL. Alternatively, you may search your site’s existing content.
  • After entering the URL, you may make the link open in a new tab by clicking on the link settings arrow. Also, enable “Open in New Tab.”
  • When you’ve finished adding your link, Next use it, press the return/edit key on your keyboard.


As you can see, there are several inventive ways to include anchor connections in WordPress. Some are more straightforward than others if you’re going to be releasing a lot of lengthier material.

It allows your visitors to get the information they want quickly. We’ve also observed anchor links assist in obtaining “jump to menus” in SERPs.

That increases the CTR on your organic listing.


Please enter your comment!
Please enter your name here