Support Hub Help Desk

Custom JS and CSS

Last updated on Nov 30, 2026

Add your own scripts and styles to the help desk, for example analytics, a chat widget or small visual tweaks.

Go to Settings > General > Custom JS & CSS.

Custom JS & CSS settings

There are two separate cards, each with a JavaScript and a CSS field:

  • Help center: loaded on every public page your customers see: the home page, articles and ticket forms.
  • Agent app: loaded for you and your agents on every page of the agent app.

In the JavaScript field, write plain JavaScript or full <script> tags to load an outside file. Click Update Settings to save.

Warning: Code here runs as is for everyone who opens these pages. Only add code you trust: a broken script can stop pages from working.

Styling with stable class names

Target these classes in your CSS. They stay the same when the design of Support Hub changes:

Selector Element
.sh-agent body of the agent app
.sh-sidebar left navigation
.sh-topbar top bar with search
.sh-main page content
.sh-help-center body of the help center
.sh-hc-header help center header
.sh-hc-main help center content
.sh-hc-footer help center footer
[data-sh-page="Tickets/Show"] one page, by its name
[data-sh-page="HelpCenter/Article"] a help center page, by its name

For example, to hide the footer of the help center:

.sh-hc-footer {
    display: none;
}

Running a script on every page

Pages in the agent app and the help center open without a full reload, so your script runs once when the first page loads. To run code every time the page changes, listen for the inertia:navigate event:

document.addEventListener('inertia:navigate', (event) => {
    // event.detail.page.component, e.g. "Tickets/Show"
})

Analytics tools that count page views usually need this to track every page.

Updating CSS written for the old design

Support Hub got a completely new design in 2026. CSS written for the old design targets class names that no longer exist, so it no longer has any effect, or it may affect the wrong elements. Admins of help desks with custom CSS get an e-mail about this.

To update it:

  1. Open Settings > General > Custom JS & CSS and review your CSS.
  2. Remove rules that target old class names.
  3. Rewrite what you still need with the classes in the table above, together with your brand color, which now covers most color changes on its own.
Was this article helpful?Sign in to rate this article
© Support Hub Help Desk