How to add a link in WordPress

WordPress website security

Since I started with this blog, I had not realized until recently that most of the information I shared was aimed at readers with certain knowledge about WordPress and that is why from now, I will try to publish tutorials for any type of readers, whether or not they have prior knowledge of WordPress.

What is a link?

When I talk about a link, I mean, so that we all understand each other, that from a page or post, you link to other content, whether internal or external in your website or blog.

The process of including or adding a link that points to a page or post on your website or an external website is similar.

Generally, you will add a link in a word or a series of words, to make it clearer, here is an example:

SmartSafeInvest

As you can see in this link, the text "Smartsafeinvest" has a different color and when you hover your cursor over it, you will see the URL that the link I added points to at the bottom of the browser.

In this way, when visitors click on this text, they go directly to the URL that I have put as a link. 

Types of links: internal and external

The links can be internal or external, although there are more types, today I want to tell you about these types. Another day I'll dedicate another tutorial to see other types of links.

Internal link refers to the intern destination URL, that is, the URL to which the link will take is within your website. It can be a page, a post, or any other element. But always within your website.

On the other hand, the external link means that the URL to which it will take you is not on your website but can be any other website.

The way to include an internal and external link is identical. 

How to add a link in WordPress?

To add a link in a post or a page of your WordPress, we can do it in the following way.

If you look at the button bar of the WordPress editor, you will see an icon like this:

Links icon in WordPress editor

Well, select the word or text on which you want to add a link, then click on the link icon.

A small pop-up will appear, and all you need to do is simply add the URL for the link.

You have almost done, now just press ENTER, or click on the ARROW button as you see in the image.

By clicking on this button, the link will be created and displayed with another color (blue in my case).

Now, when someone clicks on the word " WordPress " on which you have added a link, they will go directly to "https://wordpress.org".

Simple, right?

Well, there are more things we can do with the links, such as setting them to be opened in another tab instead of the current tab. 

Configure the link so that it will appear in another browser tab

First of all, what does this mean?

Well, it's something so simple, when someone clicks on the text that contains the link, instead of opening in the same browser tab that the visitor is in, it will open in another tab.

This is can be done by adding target = "_ blank" to the <a> tag and for our example it would be something like this:

<a href="http://wordpress.org" target="_blank"> WordPress </a>

Yes, it's true that's HTML and some of you may not understand this code, that's why WordPress provides us simple tools to do it easier and faster.

If you remember, when we add the URL of the link, you see other slide buttons on the bottom:

If you look at it, you see an unactivated slide button with the text " Open in new tab".

Well, if you want the link to open in another browser tab, just activate that slide button by clicking on it and that's it!!

There’s something else about links in WordPress?

Of course, there are many more things that you can learn about links in WordPress such as links in images, links or anchors on the same page, and some other thing but this we leave it for another time.

If you have any questions, let me know in the comment below or send me a message through the contact form, and I will be happy to help you.

See you next post!!

Feel free to drop me a line or ask any questions in the comments below!