5 min read

Site Builder: Global Sections and the Site Header and Footer

Reuse a section on many pages with Global sections, and manage the site header and footer: save, add to a page, rename, detach, delete, and choose which pages show the header or footer.

A global section is a section you build once and reuse on several pages. Editing any copy updates every page that uses it. The site header and site footer are two special global sections that belong to the whole site, and you choose which pages show them.

Go to Hosting, open Hosted Apps, open your site and click Edit in Builder. Global sections live in the Global sections panel on the left rail.

Save a section as a global section

There are two ways:

  • In the Global sections panel, select a section on the page, then choose Save selected as global at the top of the panel.
  • Select a section, open the toolbar More menu and choose Save as Global. The item only appears while a section is selected.

The new global is named after the section's position, for example "Section 3". If that name is already taken it gets a counter, for example "Section 3 (2)". If the selected section is already a global the panel tells you "The selected section is already a global section."

The Global sections panel

The panel lists "Global sections on this site" with a summary such as "2 global sections". Each row shows how it is used ("Not used on any page yet", "Used 3 times", "Across 2 pages") and these actions:

  • Add to page: inserts an instance linked to the global onto the open page.
  • Rename: type a new name, then Save name (or Cancel).
  • Detach: select a section on the page that uses this global first (otherwise the panel says "Select a section that uses this global to detach it."). Detaching turns that one section back into a normal section with its current content; the global itself stays.
  • Delete: asks you to confirm. The prompt lists every section that uses the global. Delete and detach removes the global and turns each use into a regular section that keeps its content. You can undo it.

With no globals the panel shows "No global sections yet" and explains how to create one.

Using a global section on a page

A section that is a global shows a Global badge in Layers and a banner in the Inspector: "Global section: Edits here apply to N places across your site. Detach this instance to edit it on its own." Use Detach this instance in the banner, or Detach on the canvas chip, to edit that one copy independently. While attached, the Inspector notes "Changes apply to every page".

At the top of the Global sections panel the Site header & footer block reads "Shown on every page. Editing one changes it everywhere." It has one entry each for Header and Footer.

  1. Select a section on the page that should become the header (or footer).
  2. In the Site header & footer block choose Set as header (or Set as footer).
  3. To work on it later choose Select; this selects it on the canvas.
  4. To turn it back into a normal section on the open page choose Move to page.

Set as header and Set as footer are unavailable when there is no section selected ("Select a section on the page first."), when the selected section is already a global ("Detach it first."), or while that role is already filled. Move the current one to the page first.

Choose which pages show it

Open Show on pages (N) under the header or footer to see a switch for every page of the site, with "(this page)" marking the open page. Turn a page's switch off to hide the header or footer there. A summary such as "Shown on 3 of 4 pages" confirms the result. You can change any page from here, not only the one you have open.

On the canvas

A site header or footer has a Global badge and a chip showing Header or Footer. Its options menu offers:

  • Hide on this page (or Show on this page): the same per-page switch.
  • Detach to page: turns it into a regular section on this page.
  • A note: "Editing here updates every page".

Troubleshooting

  • The header does not show on a page. Open Show on pages and check that page's switch, or use Show on this page from the header's options menu.
  • Set as header is greyed out. No section is selected, the section is already a global, or a header already exists. Move the current header to the page first.
  • Edits to one page changed another page. The section is a global. Use Detach this instance to edit one copy alone.
  • I deleted a global and the sections are still there. That is expected: Delete and detach keeps each use as a regular section. Use undo to restore the global.