PrivacyQuick

All documentation pages ↓

Customizing the banner

Everything about how the banner looks and reads is set on the Banner tab. You edit a draft with a live preview, then publish.

Open your site in the dashboard and choose the Banner tab. The form is on the left and a preview on the right. The preview updates as you type and shows your real texts and colours. Nothing in it is saved or logged.

Drafts and publishing

  • Save draft keeps your changes without showing them to visitors. A notice reminds you while there are unpublished changes.
  • Publish makes the draft live. Visitors get the new banner within a minute.

Publishing changes to layout or colours doesn't disturb anyone who already chose. Changing the texts or the categories raises the banner version, and visitors are asked again on their next visit, because what they agreed to has changed. So fix wording in one go, not in ten small publishes.

Layout

StylePositionsGood for
Bar across the pageBottom or topMost sites. Visible without covering content.
Box in a cornerBottom left or bottom rightA lighter touch on wide screens. On phones it spans the width.
Centered dialogCenter, with a dimmed page behindMaking sure the choice is seen before the visitor continues.

Two checkboxes sit under the layout:

  • "Reject all" next to "Accept all". On by default, with both buttons in the same style. European regulators expect refusing to be as easy as accepting, so leave this on for opt-in regions. If you untick it, visitors can still reject from the preferences panel, but that's one click more and regulators have criticized exactly that pattern. See dark patterns regulators reject.
  • Small button to reopen settings after a choice. A round cookie button in the bottom-left corner. If you switch it off, add your own "Cookie settings" link that calls PrivacyQuick.open(), so visitors can still withdraw consent.

Colours, corners and font

  • Background and Text colour the banner and the preferences panel.
  • Buttons and Button text colour the main buttons. Accept and Reject share this style; Preferences is outlined.
  • Corner radius runs from 0 to 24 pixels.
  • Font: type a font family your site already loads, such as Inter. Leave it empty and the banner uses the visitor's system font. The banner never downloads a font itself.

Check the contrast between your text and background colours. The banner is keyboard-accessible and labelled for screen readers, but it can't fix light grey text on white.

Language and texts

The banner comes translated into 15 languages: English, French, German, Spanish, Italian, Dutch, Portuguese, Polish, Swedish, Danish, Finnish, Japanese, Korean, Simplified Chinese and Traditional Chinese.

  • Banner language sets the language every visitor sees.
  • Show the visitor's language automatically (Pro) picks one of the 15 languages from the visitor's browser settings and falls back to your banner language.
  • To force a language on a particular page, add data-lang="de" to the snippet. On Free and Starter this only accepts your banner language; on Pro it accepts any of the 15.

Editing the wording

Open Edit texts, choose the language to edit, and change any field: the title, the message for each mode, the button labels, the "Do Not Sell" link, and each category's name and description. An empty field uses our default, which is shown as grey placeholder text.

  • Put {policy} in a message where the link to your policy should appear. The link text is the "Policy link text" field.
  • Texts are plain text. HTML isn't interpreted.
  • Need a language we don't ship? Pick the closest banner language and overwrite every field with your translation. That works on every plan. The banner then shows your text to all visitors.

Keep the message honest and specific. Say what you use cookies for, and don't describe advertising cookies as "improving your experience". Design advice: cookie banner design best practices.

Links and storage

  • Policy URL. The page your banner links to. Leave it empty to link to the cookie policy we host for you; see Policies & widgets.
  • Remember choices for (days). How long the pq_consent cookie lasts, from 30 to 395 days. The default is 365. After that, the visitor is asked again. Several European regulators suggest re-asking after 6 to 13 months; see how long consent lasts.
  • Keep a consent log. On by default. See Consent log.

The Regions and Categories sections of the same form have their own pages: Regional rules & modes and Cookie categories.

The "Powered by PrivacyQuick" badge

On the Free plan the banner shows a small text link under the message. Starter and Pro remove it. If a paid account stays above 120% of its page views for two months in a row, the badge comes back until the usage drops or the plan changes. See Plans & limits.

Custom CSS (Pro)

The banner is drawn in a shadow DOM, so your site's stylesheets can't reach it. That protects it from being broken by accident. On the Pro plan, the Custom CSS box adds your rules inside the banner's own stylesheet.

SelectorElement
.bThe banner, in every layout
.bar, .box, .mThe banner as a bar, a corner box or a centered dialog
.ovThe dimmed overlay behind a dialog or the preferences panel
.pfThe preferences panel
h2, pTitles and message text
.btThe row of buttons
button, button.sMain buttons; the outlined secondary button
.ctOne category row in the preferences panel
.flThe floating cookie button
/* a thin top border and slightly larger text */
.b { border-top: 3px solid #0f766e; }
.b p { font-size: 15px; }

/* move the floating button to the right */
.fl { left: auto; right: 16px; }

Limits: up to 8,000 characters. @import and url() references to external files are removed, so you can't load remote fonts or images from the banner. These class names are short on purpose, to keep the script small, and they may change in a future major version of the script. Test after you publish.

Don't use CSS to hide or shrink the Reject button, or to make it look disabled. It defeats the purpose of the banner, and for visitors in Europe it's the kind of design regulators fine.