Custom CSS for Consent Experiences
Custom CSS lets you load an external stylesheet alongside a Consent Experiences theme. Use it when the Theme Editor controls are not enough and you need finer visual overrides.
When Custom CSS is enabled, Transcend also pins your Consent Manager UI version. That keeps the look and structure of the consent UI stable, so your custom styling does not break when Transcend ships new Consent Manager UI releases.
This guide applies only to Consent Experiences. For the legacy banner stylesheet, see Configuring the Pre-Built Consent Experience UI.
Before you configure Custom CSS:
- Enable Consent Experiences. See Enabling Consent Experiences
- Confirm your airgap.js version is at least
9.0.0. Custom CSS requires a Consent Manager UI version that is compatible with your airgap.js version. - Host your stylesheet on a URL your visitors can reach. Prefer HTTPS for production.
If you do not see Use Custom CSS under Developer Settings > Visual Editor after Consent Experiences is enabled, contact Transcend Support to enable Custom CSS for your organization.
- In the Admin Dashboard, go to Consent Management > Developer Settings.
- Open the Visual Editor tab.
- Confirm Use New Consent Experience is on.
- Toggle on Use Custom CSS.
- Choose a Consent Manager UI version from the dropdown. Transcend pins that version line so automatic updates cannot change the consent UI structure your custom styling depends on without your approval.
- Review the Consent Manager UI changelog shown under the toggle so you know what changed in each version.
- Click Review Changes & Publish and publish your airgap bundle.
Turning Use Custom CSS on pins a Consent Manager UI version. Turning it off clears the pin and returns you to automatic Consent Manager UI updates for your airgap.js version.
If your pinned Consent Manager UI version is incompatible with your current airgap.js version, the Admin Dashboard blocks deploy until you update airgap.js or choose a compatible Consent Manager UI version.
After Custom CSS is enabled, each theme can link its own stylesheet.
- Go to Consent Management > Consent Experiences.
- Open the Themes tab and select the theme you want to customize (or create a new theme).
- Open General Settings in the theme editor side panel.
- Under Custom CSS URL, enter the Stylesheet URL for your hosted CSS file (for example,
https://example.com/custom-theme.css). - Click Save Changes.
- Click Review Changes & Publish and publish your airgap bundle so the live consent UI loads the stylesheet.
You can set a different stylesheet URL per theme. Themes without a URL continue to use Theme Editor styling only.
Browsers block HTTP stylesheets on HTTPS sites by default. Use HTTPS before deploying to production.
When Use Custom CSS is OFF, Transcend keeps your Consent Manager UI up to date automatically for your airgap.js version.
When Use Custom CSS is ON:
- You choose a Consent Manager UI version and stay on that version line until you change it.
- Transcend can still apply smaller fixes within that line, but it will not move you to a newer line without you updating the pin and retesting your CSS.
If you still use the legacy consent UI and would like to move to Consent Experiences using Custom CSS, review Migrating from legacy custom CSS.