Code360 powered by Coding Ninjas X Code360 powered by Coding Ninjas X
Table of contents
Types of Links
Why are links important?
How to insert links in WordPress?
Links to WordPress Posts or Pages
Links in the Text Widget
Links in a WordPress Navigation Menu
Link Buttons to Your WordPress Site
Embed a Linked Content
Add a Link Using HTML
Frequently Asked Questions
Last Updated: Mar 27, 2024

Links in WordPress

Author Aditi
0 upvote
Master Python: Predicting weather forecasts
Ashwin Goyal
Product Manager @


Links (anchor links) are also called jump menu links. They are clickable elements on the page that helps users to move between other pages of the site. It can be in different forms like a text, an image, or a button. Links help to lead to the same page or other pages to be categorized into two types - internal links and external links.

Types of Links

Internal links are those that, when clicked on, lead to the same domain, maybe in the same or another web page. They help in increasing the user time spent on your site. It helps in boosting ranking on search engines. It also plays a crucial role in the navigation structure of your website. This can help search engines crawl and index your site better as searchers will follow links to other pages during this process. It allows users to navigate efficiently and quickly to different pages of your site. It increases user engagement on the site.

External links lead users to pages on another domain. These are often links that provide more information to your visitors and add more value to your site. As Google also ranks sites based on reliability and expertise, these links can also have a high impact.

Why are links important?

Including internal and external links to your site content can help in the following ways:-

  • They help in boosting your online visibility. 
  • They also help in improving your website user experience. 
  • They help in increasing your rank on search engines. 
  • They help in user engagement on your site.
  • They help increase the reliability of your site and will help improve the sales of your business.
Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job

How to insert links in WordPress?

Links to WordPress Posts or Pages

Step 1: To add a post or page link in WordPress, use the Guttenberg Editor. First, add the text, then start creating a WordPress hyperlink. Highlight the reader with the mouse you want to link and click the link button on the editor toolbar.

Step 2: After clicking this button, a pop-up field appears, and you can add a link there. Also, there is an option to change the "Open to New" function by clicking on "Link Settings" next to the "Apply" button. It will help your visitors not to lose your site after using the link.

Links in the Text Widget

WordPress allows you to add widgets to areas that do not contain your site content, such as the sidebar and footer. Some of these widgets are automatic and do not have many options. For example, the Recent Post widget will automatically display links to your recent posts. But, if the custom text needs to be added with links, then the Paragraph widget can be used.

Step: To load widgets, go to the Appearance->Widgets page and then click on "+Block Inserter '' or you can insert the widget on your site with the plus symbol that WordPress provides. From there, insert the paragraph widget into your content area or sidebar.

By selecting the paragraph widget, insert the text and add the link to that text using the link button on the editor toolbar.

Links in a WordPress Navigation Menu

WordPress comes with an easy-to-use drag and drop system that allows you to create a navigation menu easily.

To add links to your menus, go to Appearance -> Menus. If you do not have a menu, you can create it by naming it, selecting all the pages you want to add to your menu, and clicking the Add menu button.

You can also quickly move your menu items up and down to organize them any way you want.

Link Buttons to Your WordPress Site

If you are not comfortable adding links within the text, there is another option for you. So we will show you how to add a WordPress button link to the page. Of course, you have many different ways to do this; for example, use your HTML or CSS codes, and try plugins. But in the Guttenberg WordPress editor, you can add a WordPress button link with a few clicks.

Step 1: Go back to "Posts" and "Add New." In the upper left corner of the workspace, find the round button with the plus inside. Click on it and type the "button" in the search field.


Step 2: Add the required link to the URL field, and the task is complete. Your WordPress link to the page is ready.

In Gutenberg editor, it is also possible to attach social media link buttons to your text. You can do it the same way as you add a simple button. Type the name of the required social network instead of the "button" in the search field and click on it.

Embed a Linked Content

Certain types of content can easily be embedded into WordPress by adding their URL to your post. They may be called creating a 'content card' for your post.

Just paste the entire URL into its role block.

For example, if you want to paste a YouTube URL of any video link, it will be embedded as follows:

Step 1: Type the name of the required social network instead of the "button" in the search field to add new widgets and click on it.

Step 2: Add the required URL you want to embed in the website.

Add a Link Using HTML

You may want to add a link to your site using HTML code

 from time to time. You may also need to edit the link in the theme file directly. Just make sure you always use the child theme, so you don't miss out on your changes when updating the parent theme.

It's easy to create a link to HTML. Add a custom HTML block to a post or page to try it out. You can find this block under 'Widgets,' or you can search using the search bar.

Frequently Asked Questions

  1. What do you understand by link?
    Links are clickable elements on the page that helps users to move between other pages of the site.
  2. What are the different types of links?
    Internal and external are two types of links.
  3. What is Gutenberg's editor?
    Gutenberg editor is an editor provided by WordPress where we can easily edit the content of your website.


In this article, we have extensively discussed the links and how we can include them on our WordPress website.

We hope this blog has helped you enhance your knowledge regarding links, their type, their importance, and various methods by which links can be included in the website.I f you like to learn more, check out our articles on Wordpress. Do upvote our blog to help other ninjas grow. Happy Coding!

Previous article
Tags in WordPress
Next article
Permalinks in WordPress
Live masterclass