Campaigns · 1 min read
Code Element in the Email Builder
The Code element lets you add your own HTML and CSS to an email. Use it for custom designs, tracking pixels or embeds from other tools.
Inboxes have limited support for custom code, so always test before you send.
Add custom code
- Go to Marketing → Emails → Templates.
- Open a template or click + New.
- Click Add Elements (+) in the left sidebar.
- Drag the Code element into your layout.
- Click the element to open the Edit tab.
- Paste or type your code in the code box:
- use HTML for structure, such as tables
- use inline CSS for styling, such as colors, spacing and fonts
- Click Preview to check how it looks.
- Check both desktop and mobile previews, then send yourself a test.
Tips
- Use tables for structure and inline CSS for styling. They render most reliably in email.