> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/template-builder/template-editor/how-to-add-and-manage-links-in-a-template.md).

# ​How to Add and Manage Links in a Template

Use links in structured documents to open external pages from text in the document.

### Insert a new link

Use this flow to insert a new link at the cursor position.

{% columns %}
{% column %}

1. Place the cursor where you want the link.
2. Click the **Link** <img src="/files/8Vm9YKOSXhELRwumfmhe" alt="" data-size="line"> icon.
3. In the modal, enter the target URL.
4. Enter the link text if you want to display custom text in the document.

The link is inserted at the cursor position.
{% endcolumn %}

{% column %}

<figure><img src="/files/uC34Rvi4dv6J4J65vbFr" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Add a link to selected text

Use this flow to turn existing static text into a hyperlink.

1. Select static text in the document.
2. Click the **Link** <img src="/files/8Vm9YKOSXhELRwumfmhe" alt="" data-size="line"> icon.
3. Enter the target URL in the modal.

The selected text becomes a hyperlink.

{% hint style="warning" %}
Select only static text. If the selection includes dynamic fields, DocStudio removes those fields from the document.
{% endhint %}

### Edit, copy, or remove an existing link

1. Click the existing link.
2. Click the **Edit** <img src="/files/abdRaaVf4X0jRzZNabGg" alt="" data-size="line"> icon.
3. Edit the target URL if needed.
4. Use the available actions to copy or remove the link.

When you remove a link, DocStudio removes only the hyperlink. The text stays in the document.

<figure><img src="/files/RJmEciqZilYcbpB7Wj74" alt=""><figcaption></figcaption></figure>

### Related topics

* [How to Create a Structured Template](/user/template-builder/template-editor/how-to-create-a-structured-template.md)
* [How to Add or Edit Images in a Template](/user/template-builder/template-editor/how-to-add-or-edit-images-in-a-template.md)
* [How to Add and Manage Static Tables](/user/template-builder/template-editor/how-to-add-and-manage-static-tables.md)
