Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add a Button to the Header

The header and footer live in the page template, so a button added there shows on every page. This is how to add one, such as "Donate", and check it before it goes live. It needs the Administer page template permission, held by Site Admin and Super Admin by default.

Steps

  1. In the editor, open Layers. Click the locked page template layer at the top, or open Templates \ Page templates, to open the template on its own. A Page content marker shows where each page's content goes.

  2. Select the header. On a Varbase Starter site it holds the logo, the main menu and the search control.

  3. In Layers, expand Header and select Main navigation. In the Library, search for Button, right-click it and choose Insert: it lands next to the main menu. Set its Label (such as "Donate"), its Link URL and its Variant.

  4. Switch the preview to Mobile: the menu folds into a button, and the new button must still fit beside the logo.

  5. Open Review changes. The header change is listed on its own, so you can publish it, or a page, without the other. Publish when it has been reviewed. If the template was marked Changed before you edited it, see the warning in Page Templates.

The Vartheme BS5 theme settings with the Drupal Canvas group open and Use Drupal Canvas for page templates in this theme switched on
Drupal Canvas Page Templates Switched On in the Theme

Footer changes work the same way: the copyright line, social links, a newsletter sign-up. Legal links usually come from a menu. See Page Templates.

Questions Clients Ask

  • Who can change the footer? Roles with Administer page template: Site Admin and Super Admin by default.

Planning Notes

  • Agree header and footer contents in discovery: logo, menu items, one main call to action, search, legal links, social channels, newsletter. Legal and communications people are involved.

Last updated