Blog

How To Add A Link Section To WordPress

Before the release of WordPress v3.5, Links were a core feature of WordPress. This tutorial shows you how to restore this feature to your site …

How Do I Add Links To My WordPress Sidebar?As you become more familiar with WordPress, you may occasionally come across the term blogroll.

In WordPress terminology, a list of links displayed on your sidebar is often referred to as a blogroll.

According to official WordPress documentation …

“The term ‘blogroll’ was originally used because it was a list of links to other blogs, but you can include links to any sites.”

You can manage a blogroll using the Links menu in your WP Dashboard. These links will then display on your site once you add the Links widget.

Useful Information

Before the release of WordPress v.3.5, Links were a built-in feature of the WordPress CMS. From v 3.5 onwards, the Links manager and blogroll sections were hidden by default in new WordPress installations …

Before …

WP Links Manager Feature - pre v3.5

(Links – part of the WordPress menu until the release of WP v 3.5)

After …

Post v 3.5 - no WP Links Manager

(Post v3.5 – no WP Links feature)

If you have had an earlier version of WordPress than v3.5 installed and upgraded your installation, the Link Manager would have been removed, unless you have previously used it.

 

How To Add A Link Section To WordPress

Useful Tip

You can add a link section to your sidebar menu by creating a custom menu, or use a plugin like the one shown in the tutorial below.

If you can’t see the Links Manager section when you log into your WordPress dashboard you will need to install a plugin. This tutorial explains how to add and manage blogroll links on your sidebar using WordPress plugins.

Link Manager

Link Manager - Plugin For WordPress

(Link Manager WordPress Plugin)

Plugin URL

http://wordpress.org/plugins/link-manager

Description Of Plugin

This plugin displays the Links Manager, even if you upgrade to a later version of WordPress or remove all of your existing links.

Note: This plugin adds a single line of code to WordPress to restore the hidden feature. The last time we checked, this plugin had not been updated for a while, but it should still work fine. If you don’t want to use the Link Manager plugin, then use the one below instead, or contact us for help editing your site’s template code.

Simple Links

Simple Links - WordPress Link Management Plugin

(Simple Links Plugin)

Plugin URL

https://wordpress.org/plugins/simple-links/

Plugin Description

This plugin attempts to recreate the same concept as the built-in Link Manager while removing the shortcomings of the deprecated feature.

Plugin Installation

Let’s install the Link Manager plugin.

In your WordPress administration area, go to Plugins > Add New …

Plugins Menu - Add New

(Plugins – Add New)

Select the Install Plugins > Search tab, type ”link manager” into the search field and hit Enter …

How To Install The Plugin

Find the plugin in the search results screen and click Install Now …

How To Install The Plugin

Activate the plugin …

Plugin Installation

After activating the plugin, WordPress will display a ‘Links’ item in your WP navigation menu …

Links menu section

(WordPress links management menu)

Setting Up Link Manager

We recommend setting up link categories first before adding new links. This way, you can assign new links to a link category you have already created.

Link Categories

To create a link category, choose Links > Link Categories in the WP dashboard navigation menu …

WP Links Menu - Link Categories

(WordPress Links Menu – Link Categories)

This brings up the ‘Link Categories’ screen in your web browser.

Type in the following information:

  • Name: Whatever you enter in this field will display as the link category name.
  • Slug: The slug is the URL part of your link category name. It must all be in lowercase letters and contain no spaces (use hyphens to separate words).
  • Description: Some themes may display your link category description.

When done, click Add New Link Category …

Link Categories

(Link Categories)

Your category details will be added to the list …

Link Categories area

(Link Categories)

Info

Tip: The default WordPress link category is called Blogroll . Unless you specify the category for a new link, WordPress will automatically assign new links to the default category …

Default link category name is 'blogroll'

(Default link category name)

You may want to change the default WordPress link category name to something that will make sense to your site visitors. This will not only make it easier for visitors, but any new links that you add to the Links section will automatically be assigned to the new category name …

we recommend changing the default 'blogroll' to something your visitors will relate to

(we recommend changing the default ’blogroll’ to something your visitors will understand)

To edit the default category name, hover your mouse over the item and click on the Quick Edit link …

Quick Edit

(Quick Edit)

Change both the Name and the Slug with a new category name (remember to keep the slug in lowercase letters and replace all spaces with a hyphen), and click on Update Link Category …

Quick Edit

(Update Link Category)

In our example, the category name ‘Blogroll’ has been replaced with a more suitable name (e.g. ‘Recommended’).

Let’s create a link category description. To add a description to an existing link category, hover over the item name and click Edit …

You can add/edit the category description

(Link category description)

Enter your description in the ‘Edit Link Category’ page and click Update …

Edit Link Category page

(Edit Link Category page)

Repeat the above process and add as many different link categories as your site needs.

After setting up your link categories, you can being adding new links.

Adding Links

To create a new link, select Links > Add New in your dashboard menu …

WordPress Links - Add New

(Links – Add New)

The ‘Add New Link’ screen will display in your browser …

Add New Link screen

(Add New Link screen)

You can also reach this page by clicking on the ‘Add New’ button at the top of the main Links screen …

Links screen - Add New Link button

(Add New Link button)

The ‘Add New Links’ page includes the following sections:

Name, Web Address & Description

This section is where you enter your link details …

Add New Link - Name, Web Address& Description

(Add New Link screen – Name, Web Address& Description)

Type in information into the following sections:

  • Name: Whatever you enter in this field is the category name that will display on your site.
  • Slug: The slug is the search-engine friendly URL part of the link category. It must be in lowercase letters and contain no spaces (use hyphens to separate words).
  • Description: Some themes may display your link category description in the links section, or as a tool tip when visitors hover over the link name with their mouse. (Optional)
Categories & Target

After adding your link details, select a Category and Target for the link …

Categories & Target - Add New Link

(Add New Link – Categories & Target)

In the Categories section, tick one of the link categories you have already set up, or click on the ‘+ Add New Category’ link to add a new category.

Also, select a target frame radio button for your link in the Target section. This lets you specify how you want the link to open when clicked on:

  • _blank means that when a visitor clicks on your link, a new window will open up in their browser to display the content for that link.
  • _none means that when a visitor clicks on the link, they will exit your site and a new website or page will load in your web browser window instead.
  • _top opens links at the top level of the frame system if you’re using frames. If you don’t use frames, or if you don’t know what frames are, then ignore this option.
Link Relationship XFN

This section provides some additional link functionality …

Link Relationship (XFN) - Add New Link page

(Link Relationship (XFN) fields – Add New Link)

Link Relationship (XFN) – XFN (XML Friends Network) lets you define your relationship to the linked person. For example, if you work with Salinger Cooper and you link to his blog, you would probably check co-worker or colleague.

XFN relationships are optional. You can ignore this section and all your links will still work. Defining relationships with XFN makes your links more understandable to some sites and search engines that use this information.

rel – This field lets you specify the ‘rel’ attribute that will be assigned to your link. The rel attribute is used to define what relationship exists between the current document and the linked document. For example, if you don’t want search engines to follow your link, enter nofollow into this field.

To learn more about XFN, visit the site below:

Advanced

The last section allows you to specify Advanced features for your links (some themes will ignore this. You can ignore this section, unless there’s a good reason to use it) …

Add New Link - Advanced link settings

(Advanced link settings – Add New Link)

The Advanced section fields are as follows:

  • Image Address: Specify an image to be displayed with the link. Add the URL of your image and make sure that the image is small (around 16×16 like a favicon).
  • RSS Address: If your theme allows it, the link’s RSS feed can be displayed next to your links.
  • Notes: Add notes about the link in this section for your own internal reference.
  • Rating: You can add a rating score to the link if you would like to sort links by rating (see the ‘Links’ widget section below).

Type in your information into the above fields or just leave this section blank.

When you have finished adding information about your link, click on the Add Link button to save your new link …

click on Add Link to update your link settings

(Click on Add Link to update your link settings)

Important

Note: If you select the Keep this link private checkbox, the link will not be visible when links are displayed on your site …

Make your links private

(Make your links private)

Making a link private allows you to toggle link visibility on or off without deleting it (this is useful if you want a link to display during certain times and hide it after it’s no longer required) …

Toggle link visibility on and off

(Toggle link visibility on and off)

To see all the links you have added, select Links > All Links in your dashboard navigation menu …

Links Menu - All Links

(WP Links – All Links)

This loads the ‘Links’ table in your web browser. The list of links displays all your links and link information (e.g. URL, link categories, visibility, etc.) …

Links table

(Table of links)

Practical Tip

Tip: To view or hide fields in the Links page, click on the ‘Screen Options’ tab at the top of the screen …

Links table - Screen Options

(Links screen – Screen Options)

Enable/disable fields on your Links table by selecting/deselecting their check boxes …

Show/hide links

(Table of links – Hide or display screen options)

Editing Links

To edit a link, click on Links > All Links in your dashboard navigation menu to bring up the links page …

WordPress Links Menu - All Links

(Links – All Links)

Locate the link you want to edit and click on Edit to bring up the item’s link information …

Editing link information

(Editing your links)

Change the link details …

Edit Link screen

(Edit Link page)

After editing your link, you can:

  • Click the Update Link button to save and update your link details,
  • Click on Visit Link to see your link and make sure that you have set up the link’s URL correctly (your link will open up in a new window),
  • Click Delete to delete the link from your list …

Edit Link: Update Link button

(Update Link button)

How To Delete Your Links

To remove links from the Link Manager, go to the dashboard menu and select Links > All Links …

Links - All Links

(Links – All Links)

This loads the ‘Links’ screen in your browser.

You can delete links individually, delete multiple links by selecting their check boxes, or perform a bulk delete.

To delete links individually, hover your cursor over the link that you want removed and click on Delete …

Delete your links

(Delete your links)

To delete a number of links at once, either tick the checkboxes next to individual links that you would like deleted, or select all links by clicking on the main checkbox next to the ‘Name’ column header …

Delete multiple links

(Deleting multiple links)

Select Delete from the ‘Bulk Actions’ drop menu, and click Apply to delete your selected links …

Links: bulk-deletion function

(Bulk-delete links)

Your links will be deleted …

Link deletion notice

(Link deletion notice)

Using The Link Manager Plugin

Now that you know how to configure link categories and how to add, edit and delete links, it’s time to make links display on your website or blog.

Using The Links Widget

Installing the Link Manager plugin adds a ‘Links’ widget to your ‘Widgets’ screen.

To access and configure your Link widgets, click on Appearance > Widgets in your WP navigation menu …

Appearance - Widgets

(Appearance Menu – Widgets)

The ‘Widgets’ screen will load in your web browser.

You will see a ‘Links’ widget in the Available Widgets section …

Links widget

(Links widget)

Drag the ‘Links’ widget to one of the widget areas and drop it wherever you want the links section to display …

Adding a links widget to a widgetized area using drag & drop

(Drag and drop the links widget to add it to a widgetized area)

The Links widget includes a number of settings. You can specify what information you want to display about your links and how many links you want displayed on your sidebar …

Link widget settings

(Link widget settings)

You can also add multiple link widgets to your sidebar and footer. This allows you to add and display link categories on your site …

Add multiple link widgets to your sidebar

(Add a number of link widgets to your sidebar)

Select a link category to display links for a specific category …

Link widget options - Select Link Category

(Link widget settings – Select Link Category)

You can sort links by Link title, Link ID, Link rating, or display links in Random order …

Link widget settings - Sort by options

(Link widget settings – Sorting options)

After setting up the links widget, click the Save button to update your settings. Your links should become visible on your website …

An example of how links can be displayed on a sidebar

(An example of how links can be displayed on your site’s sidebar)

As the above example shows, you can display specific links to your site visitors (e.g. a list for a specific link category only), and add multiple lists of links to your sidebar menu.

Useful Tip

Need more help with widgets? We have written a detailed article on widgets. For more details, go here:

Links Manager – Additional Information

If you have many links, the Links Manager plugin allows you to easily administer these with filter, sort, and search functions.

Sort Links

You can sort links by hovering your cursor over the title of the column you want to sort and clicking on the little black triangle displayed next to the column title …

You can easily sort your links

(You can sort links)

Search Links Function

Type a search term into the search field and click the Search Links button to search for links …

You can search your links with the search function

(You can find your links using the search function)

Filtering Your Links

You can filter links by category …

Filter links by category

(Filter links by link categories)

You can also search and filter links in the Link Categories screen. Use the ‘Search Link Categories’ button to search for link categories, or click on the links in the ‘Links’ column …

Search and filter links in the Link Categories page

(searching and filtering links in the Link Categories screen)

This brings up a list of all links grouped under a specific link category …

Links filtered by link category

(Links filtered by link category)

Links – Additional Options

If you plan to add a lot of links to your website or blog, or if you would like to add a ‘Links’ page to your site (i.e. not just add a links section to your sidebar), then you may want to consider using a plugin that can help you administer links.

Link Library

Link library - WordPress Links Management Plugin

(Link Library Plugin)

Download Plugin URL

http://wordpress.org/plugins/link-library/

Plugin Description

Link Library allows you to output a list of all your link categories with a complete list of all your links together with descriptions and notes …

Link Library links

(Link Library links. Screenshot taken from Link Library plugin site.)

Link Library creates a page on your web site that contains all the link categories in your Links section, and all links defined for these categories. You can select a sub-set of categories to display or not display, show only one category at a time, display a search box and find results based on visitor queries, display a form to accept user submissions that can be moderated by a site administrator, and even generate an RSS feed of your link collection that lets your site users be made aware of any additions made to to your link library.

To learn more this great plugin, visit the plugin site:

Adding WordPress Sidebar Featured Links

Congratulations! Now you know how to how to add and manage links to external websites in WordPress.

Useful Tip

We have written a detailed article on how to insert HTML links into your WordPress content. Go here to learn more:

***

"I am beyond impressed with what you have put together. I can tell that you put a ton of hard work into building what you have. You have the absolute best content on WordPress I have ever seen!" - Robert T. Jillie