All articles

Page & layout

Add headers, footers and page numbers

A running header prints at the top of every page and a running footer at the bottom: a logo and the document title above, "Page 2 of 5" and your company details below. You build each one once, from the same blocks as the rest of the template, and Weft repeats it on every page of the PDF.

Before you start

  • In the hosted app, changing a template needs the editor role or higher. Local mode has a single user and no roles.
  • Work in the Flow view. In the Paged view the outline and the properties panel are dimmed and do not respond to clicks.
  • Open the outline: the panel headed Outline, shown or hidden with the button at the far left of the app bar (tooltip Show structure panel).
  1. In the outline, press Add header (above your document's blocks) or Add footer (below them).
  2. The Add block menu opens. Pick the first block for it — a Paragraph for a line of text, an Image for a logo, or Columns or Grid to set things side by side.

The block lands in the new header or footer, selected. The outline now lists Page header above a Body label and Page footer below your document's blocks. To add more, press the + beside Page header (tooltip Add a block to the page header) or beside Page footer; each new block goes at the end.

In the Flow view, the header shows above your document's blocks in a dashed box marked HEADER, and the footer below them in one marked FOOTER. Click their blocks to select and edit them, as you would anywhere else.

What can go inside

Any block from the Add block menu, including your saved pieces under My components — a letterhead saved once can go into the header of every template (see Reusable components). Fields from your data work as they do in the body, so a header can carry the invoice number or the customer's name (see Bind fields).

The header and footer print inside the page's top and bottom margins, so those margins decide how much room they have. If a header looks cramped in the Paged view, increase the top margin — see Set up the page.

Number the pages

A line of text is built from runs: fixed words, data fields and page counters laid end to end (see Text runs). Two runs are made for headers and footers: + Page #, the number of the page it prints on, and + Page count, the total number of pages.

To print "Page 2 of 5" in the footer:

  1. Select a paragraph in the footer — add one with the + beside Page footer if you need to.
  2. Open the properties panel with the properties button at the far right of the app bar (tooltip Show properties panel), or press ⌘. (Ctrl+. on Windows) after clicking the paragraph's row in the outline.
  3. In the Content panel, change the text in the first chip to the word Page followed by a space, then click away.
  4. Press + Page #.
  5. Press + Text, replace its text with a space, the word of and another space, then click away.
  6. Press + Page count.

The chips now read Page, Page #, of and Page count. In the Flow view both counters show 1; the Paged view and the PDF show the real numbers on every page. A counter takes formatting like any other run, from its chip's ⋯ button.

The Service Agreement starter's footer goes further, putting fixed words and a field before the counters:

The Content card for a footer paragraph. Its runs are listed as chips: the text Private & Confidential, a separator dot, a field chip marked ƒ showing record.Firm.Name, a separator dot and the word Page, a Page # counter, the word of, and a Page count counter. Below are buttons to add Text, Field, Formula, Page # and Page count.
  1. In the outline, click the Page header label itself (tooltip Edit header band (full-bleed background)), or the Page footer label.
  2. The properties panel opens on Page header (or Page footer), described as Page region · brand band.
  3. Under Brand band, choose a Background colour.

The band is a bar of that colour across the full width of the paper, as tall as the top margin (or, for the footer, the bottom margin), with the header or footer printed on it. It appears on every body page in the Paged view and the PDF; the Flow view does not draw it. Press Clear to remove the colour; the box then reads None.

The same panel offers Ask Buddy about the page header (or the page footer) — see Ask Buddy to edit.

How they print

  • The header and footer print on every body page, including a page that begins with a page break or with a section or table set to start on a new page.
  • They do not print on a cover page or a back cover, and neither does the colour band. See Cover pages.
  • Page numbers skip the covers. With a cover page, the first page after it shows 1, and the page count leaves out the cover and the back cover.
The canvas in the Paged view. The bar above it shows Flow and Paged with Paged selected, the zoom at 51 percent, Refresh and the page count. The first page is a dark navy cover that runs to the paper's edge, with its title centred and no header or footer. The second page has a running header at the top and a footer at the bottom that ends Page 1 of 4: the cover is not counted.

Delete the blocks inside it. Choose Delete in a block's outline row ⋯ menu, select the block and press Delete block at the foot of the properties panel, or click its outline row and press the Delete key. When the last block goes, the header or footer goes with it, and the outline shows Add header or Add footer again. Undo brings it back.

A band colour you set is remembered: add a header again later and the band returns with it.

Good to know

  • There is one header and one footer per template. A cover page is the way to have a first page without them.
  • The Paged view is laid out when you open it. If it looks out of date, press ⟳ Refresh (tooltip Rebuild the page preview).
  • Preview PDF, in the bar above your document, shows the header and footer as they print — see Preview your document.

What next