Layout

Klaro Configuration - Layout Tab

Layout settings

Color Scheme

color_scheme

color_scheme
type

select

Default

'dark_neutral'

Default color scheme used for the display. The colors can also be overridden later via CSS variables.

Options:

  • Dark (neutral) [dark_neutral]
  • Light (neutral) [light_neutral]
  • Dark [dark]
  • Light [light]

Alignment

alignment

alignment
type

string

Default

''

Condition: must_consent == FALSE && notice_as_modal == FALSE

Determines the alignment of the Consent box if mustConsent and noticeAsModal are disabled.

Behavior

Notice As Modal

notice_as_modal

notice_as_modal
type

boolean

Default

false

Condition: must_consent == FALSE

Show cookie notice as modal

HTML Texts

html_texts

html_texts
type

boolean

Default

true

If set to true, Klaro will render the texts given in the consentModal.description and consentNotice.description translations as HTML. This enables you to e.g. add custom links or interactive content. If you want to be able to output HTML tags via fluid-enriched labels (see "Content" → "Translations"), this option must be enabled.

Embedded

embedded

embedded
type

boolean

Default

false

Setting "embedded" to true will render the Klaro modal and notice without the modal background, allowing you to e.g. embed them into a specific element of your website, such as your privacy notice.

Testing

testing

testing
type

boolean

Default

false

Setting testing to true will cause Klaro to not show the consent notice or modal by default, except if a special hashtag is appended to the URL (#klaro-testing). This makes it possible to test Klaro on your live website without affecting normal visitors.

No Auto-Load

no_auto_load

no_auto_load
type

boolean

Default

false

Setting this to true will keep Klaro from automatically loading itself when the page is being loaded.

Other display settings

Group by purpose

group_by_purpose

group_by_purpose
type

boolean

Default

true

You can group services by their purpose in the modal. This is advisable if you have a large number of services. Users can then enable or disable entire groups of services instead of having to enable or disable every service.

Disable Powered By

disable_powered_by

disable_powered_by
type

boolean

Default

false

You can also remove the "Realized with Klaro!" text in the consent modal. Please don't do this! We provide Klaro as a free open source tool. Placing a link to our website helps us spread the word about it, which ultimately enables us to make Klaro! better for everyone. So please be fair and keep the link enabled. Thanks :)