---
title: Adding hyperlinks and anchors in WordPress
description: "Adding hyperlinks and anchors in WordPress is essential for creating a well-connected and navigable website. Here's how you can add hyperlinks and anchors: ### Adding Hyperlinks: 1. **Inserting Links in the Visual Editor:** - While editing a post or page…"
url: "https://support.thebusinesstk.com/docs/adding-hyperlinks-and-anchors-in-wordpress/"
updated: "2025-03-27"
category: Creating and Editing Content
---

# Adding hyperlinks and anchors in WordPress

Adding hyperlinks and anchors in WordPress is essential for creating a well-connected and navigable website. Here's how you can add hyperlinks and anchors:

### Adding Hyperlinks:

1. **Inserting Links in the Visual Editor:**
   - While editing a post or page in the visual editor, highlight the text you want to turn into a hyperlink.
   - Click on the "Insert/edit link" button in the toolbar (it looks like a chain link).
   - Enter the URL you want to link to in the "URL" field.
   - Optionally, you can add a title for the link in the "Title" field (this is displayed as a tooltip when users hover over the link).
   - Click the "Apply" button to insert the hyperlink.
2. **Inserting Links in the Text Editor (Classic Editor):**
   - While editing a post or page in the text editor (HTML mode), use the following format to create a hyperlink:

```xml
<a href="URL">Link Text</a>
```

- Replace "URL" with the actual URL you want to link to, and "Link Text" with the text you want to display as the hyperlink.

### Adding Anchors:

1. **Inserting Anchors:**
   - An anchor is a specific point within a webpage that you can link to.
   - To create an anchor, place your cursor at the location where you want the anchor to be (typically at the beginning of a section).
   - Click on the "Insert/edit anchor" button in the toolbar (it looks like an anchor symbol).
   - Enter a name for the anchor (without spaces or special characters) and click "OK" to insert it.
2. **Linking to Anchors:**
   - To link to an anchor within the same page, create a hyperlink using the following format:

```xml
<a href="#anchor-name">Link Text</a>
```

- Replace "anchor-name" with the name you assigned to the anchor, and "Link Text" with the text you want to display as the link.
- When users click on the link, the page will scroll to the location of the anchor.

### Additional Tips:

- **Targeting External Links:** If you want a hyperlink to open in a new tab or window, add the attribute `target="_blank"` to the `<a>` tag.
- **Relative URLs:** When linking to internal pages or resources within your WordPress site, you can use relative URLs (e.g., `/about-us/`) instead of absolute URLs (e.g., `https://example.com/about-us/`).
- **Testing Links:** After adding hyperlinks and anchors, it's essential to test them to ensure they work correctly and navigate users to the intended destinations.

By following these steps and tips, you can effectively add hyperlinks and anchors in your WordPress content, improving navigation and user experience on your website.
