---
title: "Global blocks and templates"
description: "Reuse blocks across your litetile site. A global block stays the same on every page that uses it; a template is a copy you edit on each page."
url: "https://www.litetile.io/docs/editor/library"
lang: "en"
---

At the end of this guide you can reuse blocks (the sections of a page) across your site, either as one shared global block or as a template you copy.

## Global block or template

Global block or template

- Global block
- Template

- What it is One block shared by every page that uses it A saved copy of a block
- When you edit it Every page that uses it changes Nothing else changes; each placed copy is edited on its own
- Good for Opening hours, a contact band, a call to action that must say the same thing everywhere A layout you like and fill with different words on each page
- Publishing Publish the global block itself to update the pages Nothing to publish beyond the page you placed it on

## Make a global block

1. In the editor, select the block.
2. Open its menu (in the **Outline** or at the top of the settings panel) and choose **Convert to global block**.
3. Type a **Name** and choose **Save**.

The block on the page is now the global block. A global block cannot hold another global block: converting a block that holds one says "Can't convert this block".

## Save a template

1. Select the block.
2. Open its menu and choose **Save as template**.
3. Type a **Name** and choose **Save**. The editor says "Template saved".

## Place one on a page

1. Open **Add blocks** in the left rail.
2. Choose the **Library** tab.
3. Under **Templates** or **Global blocks**, click the card, or drag it onto the page.

Templates are "Inserted as a copy. Editing one changes nothing else." Global blocks are "Synced. Editing one changes every page that uses it."

On the Free plan, a placed global block or template counts as one block towards the 10-block limit.

## Edit a global block

Select the global block on the page. The settings panel shows two buttons:

- **Edit** opens the global block in the editor on its own, with the **Library** in the top bar's path. Change it as you would a page; it saves by itself.
- **Unlink** replaces it on this page with an ordinary copy of its blocks, which you can then change for this page only. The global block and the other pages that use it stay as they are.

![The Library tab of the Add blocks panel with templates and global blocks.](https://media.litetile.app/media/6eee3550-99b4-4494-8fc5-d588d1e67e1e/009b4baa-f474-4003-ba0f-033a65d2387a.png)

A global block keeps its own words in each language of your site. In its editor, use the language code in the top bar to switch language or choose **Translate to** a language.

## Publish a global block

Changes to a global block reach your site when you publish the global block itself. Publishing one page does not publish it.

1. In your site's dashboard, open **Library**.
2. On the **Global blocks** tab, choose **Publish changes**.
3. In **Publish changes**, select the global block ("Updates every page that uses it") and publish.

You can also publish it with **Publish all** on the **Overview**. See [Publish changes](https://www.litetile.io/docs/publishing/publish-changes).

Warning

A page that uses a global block that has never been published goes live without it. The publish check says "The block" and its name "is not live: this page publishes without it until the block is published."

## The Library screen

**Library** in the dashboard sidebar lists everything you saved, on two tabs: **Global blocks** and **Editable templates**. Search by name, or filter by **Language**.

![The Library screen: global blocks tab with one block.](https://media.litetile.app/media/6eee3550-99b4-4494-8fc5-d588d1e67e1e/e0c48f66-2c35-4bcd-b849-4497a160e7c1.png)

Each card shows a preview, where it is used ("Used on 3 pages" or "Not used yet"), when it was last changed and, for a global block, its status: **Live**, **Unpublished changes** or **Unused**.

The Library screen

- Action
- What it does

- Edit Opens it in the editor
- Rename Changes its name
- Show usage Lists the pages that use a global block, with Open for each
- Duplicate Makes a copy named after the original with "copy" added
- Delete Removes it from the library. This cannot be undone

A global block that a page still uses cannot be deleted: the menu says "In use on" the number of pages. Remove it from those pages, or **Unlink** it there, first. A page in the trash still counts; if only a trashed page uses it, deleting says "A page still uses this block, perhaps in the trash."

Deleting a template leaves the copies already placed on pages as they are.
