← Back to Badge Customization
Badge Customization
Placement and size
Floating in the corner, inline in the page, standard or compact, one badge ID.
Choose a placement
- Floating. Corner seal. Script in the head after consent. Default if you omit
data-sitetrust-mode. - Inline. In-content seal. Script in the footer or another block. Requires
data-sitetrust-mode="inline". - Both. Allowed. Same
data-sitetrust-id.
Choose a size
- Standard. Omit
data-sitetrust-size. Inline canvas is 100px. - Compact.
data-sitetrust-size="compact". Inline canvas is 60px. Use this on tight footers and mobile-heavy layouts.
Do not restyle the iframe
Width, height, and mobile layout are controlled by the widget. Parent CSS and Tailwind breakpoints will not reliably shrink the artwork. If you need compact, set the attribute.
Consent stays first
A badge script never replaces consent-widget.js. Order and combined paste: Combined consent and badge snippet.
Need help?
Email wecare@sitetrust.com with your site URL and platform. One business day response, Monday through Friday.