Links

Table of Contents

In WordPress, you can add, edit, or remove two types of links: permalinks and content links.

Permalinks

Permalinks are the full URL for your site’s posts, pages, media, and other content. They are called permalinks because they are permanent links.

Permalinks typically include two elements:

  • Your site’s domain (https://help.britecore.com).
  • A slug, which is the part of the URL that appears after the domain.

    Note: Slugs can contain any identifying information, such as a date or category. However, on the Help site, we use the post or page title.

Following a simple and consistent format for permalinks make them easy for readers to understand, search for, and share.

Example: This post’s permalink (https://help.britecore.com/wordpress-add-edit-or-remove-links/) is short, simple, and describes the page content. The reason the slug isn’t simply links like the post title is that that would be too generic and wouldn’t give readers a sense of the content based on the permalink alone.

Add a permalink

WordPress automatically creates a permalink when you create a post or page. The permalink is created based on the permalink structure option selected on the Permalinks Settings page (DashboardSettingsPermalinks).

Edit a permalink

If you ever need to edit a permalink, you can.

Important: Changing a permalink will break the link anywhere it’s used, such as on posts, pages, navigation menus, sidebars, and browser bookmarks.

Once you’ve published a post or page, it’s best not to change the permalink. However, if you change the post or page title, you’ll want to update the permalink to match.

Note: If you change a permalink, be sure to update any place on your site where the permalink is located: posts, pages, navigation menus, sidebars, and footers.

To edit a permalink:

  1. In the Classic editor, under the post or page title, next to Permalink, select Edit.
  2. In the slug box, make the necessary changes, and then select OK.
  3. In the Publish box, select Update.

Remove a permalink

You have to delete a post or page to remove its permalink.

To remove a permalink:

  • In the Classic editor, in the Publish box, select Move to Trash.

Content links

Content links are links found within a post or page.

When working with content links, you have several options:

  • Add a link that opens in the same tab.
  • Add a link that opens in a new tab.
  • Update an existing link to open in a new tab.
  • Edit a link.
  • Remove a link.

Note: The steps below work in both the Classic and Block editors.

Add links

Important: When you add an external page link, set the link to open in a new tab.

To add a link that opens in the same tab:

  1. In the editor, highlight the text you want to link, and then, in the toolbar, select Insert/edit link .
  2. In the Paste URL or type to search box, paste the external link, and then select Apply .

To add a link that opens in a new tab:

  1. In the editor, highlight the text you want to link, and then, in the toolbar, select Insert/edit link .
  2. In the Paste URL or type to search box, paste the external link, and then select Link options .
  3. In the Insert/edit link dialog box, select Open link in a new tab, and then select Add link.

Edit or remove links

To edit a link:

  1. In the editor, select the linked text you want to edit, and then select Edit .
  2. In the link box, edit the link, and then select Apply .

To update an existing link to open in a new tab:

  1. In the editor, select the linked text you want to edit, select Edit , and then select Link options .
  2. In the Insert/edit link dialog box, select Open link in a new tab, and then select Update.

To remove a link:

  • In the editor, select the linked text you want to remove, and then select Remove link .

Fix broken links

Table of Contents