← Back to Badge Installation
Badge Installation
Install the inline badge
The inline badge sits in the page, usually the footer. Do not put the inline script in the head or it will behave like a floating seal.
The inline snippet
Use the same data-sitetrust-id as the floating badge. Add data-sitetrust-mode="inline".
<script src="https://www.sitetrust.com/widget.js"
data-sitetrust-id="ST-XXXXX-XXXXX"
data-sitetrust-mode="inline">
</script>Where it goes
- Paste the script in the page body where the seal should sit: site footer is the default. Checkout, pricing, or an about block also work.
- Do not put the inline script in
<head>or a global header custom-code box. In the head it will float in the corner instead of sitting in the layout. - If consent is installed, keep
consent-widget.jsfirst in the head. The inline badge script stays in the footer.
Size
Standard inline is 100px. Compact inline is 60px (data-sitetrust-size="compact"). The badge draws inside a small iframe. Do not try to restyle it with Tailwind sm: breakpoints from the parent page. Those breakpoints do not apply inside the iframe.
<script src="https://www.sitetrust.com/widget.js"
data-sitetrust-id="ST-XXXXX-XXXXX"
data-sitetrust-mode="inline"
data-sitetrust-size="compact">
</script>Using floating and inline together
Allowed. Floating script in the head (after consent). Inline script in the footer. Same badge ID. Do not invent a second ID.
Need help?
Email wecare@sitetrust.com with your site URL and platform. One business day response, Monday through Friday.