Hype Cart

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

  1. Click + on Top bar, Content or Footer in the cart editor's module list.
  2. Choose Custom text or Custom HTML.
  3. Open it in the module list.
  4. Fill in Text or HTML.
  5. Click Save.
Custom textCustom HTML
What you typePlain text, with **bold** and *italic*HTML, including <style> and <script>
How it looksSmall, centered text in a muted color, with your line breaksHowever your markup styles it
HTML tagsPrinted as writtenRendered

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 on event 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 articles

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.