Client CraftClient Craft HubStart free

Make a component and reuse it on many pages

On this page
Updated 24 Nov 20262 min read

Turn a block into a component, place it on other pages and change it once to update it everywhere, or detach one copy when a page needs its own version.

Plan: Free Visual Builder package

A component is a block (and everything inside it) that is kept in the design library and shown wherever it is placed. Edit it once and every page that uses it changes. Use components for content that must stay identical everywhere, such as a shared offer banner or a legal notice; most content is better edited directly on its page.

Before you start #

  • An administrator has allowed the Component element type in the Block Grid or Block List data type of the page (Settings › Data types). Until then, Make component is greyed out with this explanation: "Components aren't allowed here. An administrator can allow the "Component" type in this Block Grid or Block List's Data Type (Settings, Data types)."
  • The Component type itself is created when the package is installed (a package migration).

Step by step #

  1. 1
    Make the componentSelect the block on the canvas, open its Advanced tab and select Make component ("Use this block on many pages and edit it once.").
  2. 2
    Name itIn Save as component, enter a Name and select Create component. The block on this page is replaced by a link to the component.
  3. 3
    Publish itOpen Design library › Components, select the component and choose Publish component. A component that is not published yet shows a draft dot in the Insert panel, and the live site shows it only after it is published.
  4. 4
    Place it on another pageOn another page, open Insert › From design library and choose it under "Components · edited once, shown everywhere".
  5. 5
    Edit it onceSelect the component on any page and choose Edit component. Change it, then Save draft and Publish component. Every page that uses it shows the change. The component's panel shows where it is used.

Detach one copy #

Select the component on the page and choose Detach. "Detach makes this page's own copy. It stops following the component." Use Undo if you detached by mistake.

NoteA component with blocks inside areas can't be detached into a Block List, because a Block List can't hold areas. It stays linked.

What happens next #

The design library: themes, tokens, components and patterns.

Was this article helpful?