How to Add Links in the WordPress Block Editor

Links let readers move between WordPress pages, visit external websites, contact you by email or phone, and jump to specific sections of a page. In the WordPress block editor, you can add a link to existing text, create a link from new text, or link to another page or post on your website.

The quickest method is to select the text you want to link, press Ctrl + K on Windows or Command + K on Mac, and enter the destination address. You can then apply the link and save your changes.

Step 1: Open the page or post

  1. Sign in to your WordPress dashboard.
  2. Go to Pages → All Pages or Posts → All Posts.
  3. Find the content you want to edit and select Edit.
  4. Locate the paragraph or other text block where you want to add the link.

You can add links while creating new content or edit existing links in a published page or post.

Click inside the paragraph block and highlight the words you want visitors to click.

For example, suppose your paragraph says:

Read our guide to WordPress security for practical advice on protecting your website.

You could select the words “WordPress security” and link them to a relevant page on your website.

Choose text that clearly indicates what the reader will find after clicking. Avoid vague phrases such as “click here” when more descriptive wording would be useful.

If you have not written the link text yet, type it into the paragraph first and select it.

With the text selected, use either of these methods:

  • Keyboard shortcut: Press Ctrl + K on Windows or Command + K on Mac.
  • Block toolbar: Select the link button in the formatting toolbar.

A link field will appear. Enter or paste the destination URL, then press Enter or select the confirmation control.

The selected text becomes a hyperlink. Depending on the editor version and available controls, WordPress may also offer suggestions for existing pages or posts.

For further details, see the official WordPress Link control documentation.

Step 4: Save your changes

After adding the link, select Save draft, Update or Publish, as appropriate.

Preview the page or post and click the link to check that it leads to the intended destination. For external links, confirm that the address is correct and that the destination is available.

How to Link to Another WordPress Page or Post

Internal links connect one page or post on your website to another. They help visitors discover related content and make it easier to navigate your site.

There are two convenient ways to create an internal link.

Use the page or post search

  1. Open the content you want to edit.
  2. Select the text that will become the link.
  3. Open the link control using the toolbar or keyboard shortcut.
  4. Search for the title of an existing page or post if WordPress offers relevant suggestions.
  5. Select the correct result and apply the link.
  6. Save your changes.

This is useful when you do not know the destination’s full URL. Check the selected result carefully if several pages have similar titles.

Enter the destination URL manually

You can also copy the address of the destination page and paste it into the link field.

For example, if a page on your site has the address https://example.com/contact/, you can link text such as “contact us” to that address.

Replace the example address with the actual URL of your own website. If you later change the destination page’s URL, remember to update any links that point to its previous address.

The block editor also supports a quick method for linking to existing content. In a suitable text block, type two opening square brackets ([[) to bring up a list of pages and posts that you can select.

Choose the relevant entry to insert a link to that content. This method is particularly useful when drafting an article and linking to related material as you write.

WordPress documents this feature in its Work with blocks guide.

An external link directs visitors to a website other than your own. You might use one to reference official documentation, cite a source or direct readers to a useful service.

To add one:

  1. Select the text you want to link.
  2. Open the link control.
  3. Paste the complete destination URL, including https:// where applicable.
  4. Apply the link and save the page or post.

For example, you could link the words “WordPress documentation” to https://wordpress.org/documentation/.

Use reliable destinations and check that the URL points to the intended page. WordPress checks whether a URL is formatted correctly, but that does not guarantee that the destination exists or loads successfully.

WordPress provides an option to open a link in a new browser tab. Depending on your editor version, you can find it in the link’s advanced settings or through the link toolbar.

Use this option selectively. Opening every external link in a new tab can make browsing less predictable, particularly for people using assistive technology or devices with limited screen space.

For ordinary links within your content, opening in the same tab is usually a reasonable default. Choose a new tab when there is a clear user benefit, and make the behaviour predictable.

You can change an existing link without rewriting the surrounding paragraph.

  1. Open the page or post in the block editor.
  2. Select the linked text.
  3. Open the link control.
  4. Replace the existing URL with the correct destination.
  5. Apply the change and save the content.

Check the updated link on the published page to make sure it works as intended.

  1. Select the linked text or place the cursor within it.
  2. Open the link toolbar.
  3. Select the unlink control.

You can also use the keyboard shortcut Ctrl + Shift + K on Windows or Shift + Command + K on Mac to remove a link from selected linked text in the block editor.

Removing a hyperlink leaves the text in place; it does not delete the words from your paragraph.

An anchor link takes visitors to a particular location within a page instead of simply opening the page at the top. This is useful for long tutorials, FAQs and pages with several sections.

An anchor link usually consists of a page URL followed by a hash (#) and an anchor identifier.

For example:

https://example.com/wordpress-guide/#troubleshooting

Here, troubleshooting is the anchor identifier. It must match the identifier assigned to the intended section.

Step 1: Set an anchor on the destination

  1. Open the destination page in the block editor.
  2. Select the heading or block you want visitors to reach.
  3. Open its block settings.
  4. Find the Advanced section and locate the HTML anchor field, if available.
  5. Enter a short identifier, such as troubleshooting, without the # symbol.
  6. Save or update the page.

Use a unique, descriptive identifier without spaces. Avoid assigning the same anchor to multiple sections on the same page.

See also  How to Find and Restore Deleted WordPress Content
  1. Open the page or post containing the link.
  2. Select the text you want to make clickable.
  3. Open the link control.
  4. Enter the anchor, such as #troubleshooting, to link to a section on the same page.

To link to a section on another page, use that page’s URL followed by the anchor, for example https://example.com/wordpress-guide/#troubleshooting.

Save the content and test the link. The destination may not align perfectly with the top of the browser window if the theme uses a fixed header or other layout features.

WordPress supports links that open an email application or initiate a telephone call on compatible devices.

To link text to an email address, select the text, open the link control and enter an address in this format:

mailto:contact@example.com

Replace the example address with the intended recipient’s address.

When a visitor selects the link, their device may open its configured email application. The behaviour depends on their device and settings.

For a telephone link, use the tel: format:

tel:+441234567890

Replace the example number with the correct telephone number, using an appropriate international format where possible.

On compatible devices, selecting the link may open a calling application. Do not assume that every desktop browser will initiate a call.

The official WordPress Link control documentation describes these URL formats, along with standard web addresses, relative paths and same-page anchors.

The WordPress link control includes advanced settings that can affect how a link behaves or how search engines interpret it. The options available depend on the editor and WordPress configuration.

What does nofollow mean?

The nofollow attribute tells search engines that you do not want to imply the usual endorsement relationship associated with a link. It does not guarantee that search engines will ignore the destination or that they will not crawl it.

Use it when there is a specific reason to do so, rather than automatically applying it to every external link. Google also documents sponsored for paid or advertising links and ugc for user-generated content links.

For further guidance, consult Google’s documentation on qualifying outbound links.

If you want a link to open in a separate tab, select the relevant option in the link’s advanced settings. Check the published result afterwards, as the exact controls may vary.

Use new-tab behaviour sparingly and consistently. It is a choice about the visitor’s browsing experience, not a requirement for SEO.

A well-organised linking strategy makes content easier to navigate and helps visitors understand where each link leads.

  • Use descriptive link text. Prefer “read the WordPress installation guide” over “click here”. The wording should make sense when read in context or encountered on its own.
  • Check destinations. Confirm that links point to the intended page and correct any broken or outdated URLs.
  • Link where it helps the reader. Internal links should connect genuinely related content rather than being added simply to increase the number of links.
  • Avoid excessive linking. Too many links in a paragraph can make it difficult to read and obscure the most useful destinations.
  • Use appropriate external sources. Link to reliable documentation and references when they support the information being presented.
  • Keep URLs up to date. If you rename a page or change its permalink, check whether existing links need updating.
  • Make link behaviour predictable. Avoid opening links in new tabs unnecessarily, and ensure that link text clearly communicates its purpose.
See also  How to Add Images to a WordPress Page or Post

Internal links can help visitors discover related material and help search engines understand relationships between pages. However, adding links does not guarantee improved search rankings.

Check that the destination URL is complete and correct. For an external website, include the appropriate protocol, such as https://. For an internal page, verify the page’s current address and confirm that it is accessible.

WordPress will not accept the URL

The link control validates URL formatting, but it does not verify that a destination exists. Check for accidental spaces, missing characters or an incorrect URL format.

WordPress supports standard web addresses, relative paths, anchors, email links and telephone links. Use the format appropriate to the destination.

Edit the link and replace its destination with the correct URL. If you selected an internal page from WordPress’s suggestions, confirm that you chose the intended page rather than another with a similar title.

Check that the destination block has the correct HTML anchor and that the link uses the same identifier. Remember that the anchor field does not include the #, but the link does.

Also check whether the destination page has been published and whether its URL has changed.

Frequently Asked Questions

Yes. Select different words or phrases separately and assign each one its own destination. Ensure that the links remain readable and do not overlap in a confusing way.

Yes. Add a Button block, enter the button text and use its link control to specify the destination. Button settings differ from ordinary text-link settings, but the purpose is the same: directing visitors to a relevant page or action.

No. The WordPress block editor includes built-in controls for creating, editing and removing links. A plugin is only necessary if you require additional functionality beyond the standard editor.

Yes. You can link to a file using its URL, provided the file is accessible to your visitors. WordPress also includes a File block for displaying a downloadable file link.

Conclusion

To add a link in the WordPress block editor, select the relevant text, open the link control using the toolbar or keyboard shortcut, enter the destination and save your changes. You can link to other pages, external websites, specific sections, email addresses and telephone numbers.

Use descriptive link text, verify destinations and choose advanced settings according to the reader’s needs. These straightforward practices help keep your WordPress content useful, accessible and easy to navigate.

Scroll to Top