⚙️ Account Settings

Editing the Help Centre navigation menu

The links across the top of your help centre, such as Submit a request or a link back to your website, live in your help centre theme. To add, rename or repoint a link, you edit one theme file called header.hbs.

This article shows you how to do that safely, and how to make sure each link goes to the right page.

Before you start

  • You need to be a Knowledge admin.
  • Editing theme code needs Zendesk Suite Growth or above.
  • Gather the addresses (URLs) you want to link to. For a help centre page, open it and copy the address from your browser.
  • Is your theme managed in GitHub? If your theme card shows a GitHub icon, don't edit it in Zendesk, as that breaks the connection. See If your theme is managed in GitHub below.

Help centre header with navigation links highlighted

Illustration only. Your screen may look slightly different.

Step 1: Make a copy of your live theme

Never edit the live theme directly. Work on a copy so customers don't see half-finished changes.

  1. In Knowledge admin, click Customize design in the sidebar.
  2. On your live theme, open the options menu and make a copy.

Step 2: Edit the header links

  1. On the copy, click Customize, then click Edit code.
  2. Under templates, click header.hbs.
  3. Find the menu. In the standard Copenhagen theme it starts with <nav class="user-nav".
  4. Add, change or remove links. Each link looks like <a href="ADDRESS">Link text</a>.
  5. Click Save.

Example: a menu with a "Getting started" category, a link back to your website and the standard Submit a request link.

<nav class="user-nav" id="user-nav" aria-label="Main menu">
  <a href="/hc/categories/123456789">Getting started</a>
  <a href="https://www.yourcompany.com.au" target="_blank" rel="noopener">Back to our website</a>
  {{link 'new_request' class='submit-a-request'}}
</nav>

Step 3: Point each link to the right page

  • A help centre category, section or article: use the part of the address that starts with /hc/, for example /hc/categories/123456789. This keeps working if you change your help centre's domain.
  • Submit a request: keep Zendesk's built-in link {{link 'new_request'}} instead of typing the address. It always goes to the right form.
  • Your own website: use the full address starting with https://, and add target="_blank" if you want it to open in a new tab.

Step 4: Preview, then make it live

  1. Click Preview and click every link in the menu, on a desktop and a phone-sized window.
  2. When it's right, go back to Customize design, open the options menu on your copy and set it as the live theme.

Steps: copy theme, edit header.hbs, preview, make live

Illustration only. Your screen may look slightly different.

If your theme is managed in GitHub

  1. Make the header change in your GitHub repository (in templates/header.hbs).
  2. Increase the version number in manifest.json.
  3. In Knowledge admin, click Customize design, open the theme's options menu and select Update from GitHub.

Not sure who looks after your theme code? Ask your Gravity CX team before you change anything.

Good to know

  • Keep it short. Three or four header links is plenty. More than that gets cramped on phones.
  • Restricted pages. If a link points to content only some people can see, everyone else gets a sign-in or "page not found" message.
  • Back up first. Your copy of the theme is your backup. Keep the old live theme until you're sure the new one works.

Related articles

Was this article helpful?

Comments

Please sign in to leave a comment.