Custom text and custom HTML
Updated Nov 9, 20261 min read
On this page (3)
Custom text adds your own text to the cart drawer, and Custom HTML adds your own markup and scripts. You can add each as many times as you need.
Set it up
- Click + on Top bar, Content or Footer in the cart editor's module list.
- Choose Custom text or Custom HTML.
- Open it in the module list.
- Fill in Text or HTML.
- Click Save.
| Custom text | Custom HTML | |
|---|---|---|
| What you type | Plain text, with **bold** and *italic* | HTML, including <style> and <script> |
| How it looks | Small, centered text in a muted color, with your line breaks | However your markup styles it |
| HTML tags | Printed as written | Rendered |
Good to know
- A Custom HTML block can hold 16,000 characters. For the limit on a whole cart, see Cart drawer FAQ.
- The editor preview removes scripts, iframes and
onevent handlers, so test them on your store. - Scripts run once per page load, not each time the cart changes.
- Embeds that search the page for their own element, for example with
document.getElementById, can't find it inside the drawer. - Code you paste runs on your store. Paste only code you trust.
Related
Was this article helpful?
Related articles
Announcement barThe Announcement bar is a band of text in the cart drawer, with an optional countdown. It shows only while the cart has items. Set it up Open…Nov 9, 2026Progress barThe Progress bar shows shoppers how close they are to a reward. It doesn't apply the reward: set that up as a Shopify shipping rate or discount, or…Nov 9, 2026Show Hype Discounts goals in the progress barLink a Hype Discounts Cart Goals campaign to a cart and its goals replace your own in the Progress bar . Hype Discounts applies the rewards. You need…Nov 9, 2026Free giftsThe Free gifts module lets shoppers add a gift they've earned from the cart. The gifts come from a Hype Discounts Cart Goals campaign linked to the…Nov 16, 2026
Still stuck?
Ask a follow-up and we'll see it came from “Custom text and custom HTML”.
Opens chat with your question and a link to this article.