Code blocks allow you to insert custom HTML code into your email designs, giving you greater flexibility for custom content, real-time personalization, and third-party integrations. This feature is ideal for marketers who need more control over specific elements that are not available in the standard drag-and-drop tools.
Use a code block when you want to embed custom features directly into your emails, such as real-time ads.
In the email editor, drag the Code element to an empty cell in your canvas.
Click on the cell to open a text box on the right-hand panel.
Paste your custom HTML code into the text box provided.
Preview your email to ensure the custom content appears correctly.
Tip: Save your work frequently when adding custom HTML to prevent any loss of edits or accidental formatting errors.
Display a partner advertisement by pasting ad tags into the Code block.
Show real-time personalized content such as live weather widgets, dynamic offers, or inventory updates.
Embed geo-targeted offers based on the subscriber’s location.
Iframe and Script tags are not supported: Iframe and script tags will be stripped out after saving or moving forward in the workflow because most email clients block these for security reasons.
Editing limitations: Code blocks cannot be edited using the standard drag-and-drop tools. To modify a Code block, you must update the raw HTML directly in the text panel.
Always use inline CSS styles for better compatibility across email clients.
Avoid JavaScript and iframes, as these elements are typically blocked or stripped by email providers.
Keep your code lightweight to ensure faster load times and better deliverability.
Thoroughly test your email across multiple devices and clients before sending.
Validate your HTML code using online validators to catch errors early.
If your Code block content does not appear correctly:
Review the HTML code for syntax errors or missing tags.
Confirm that the elements used are email-friendly and widely supported.
Test with a simplified version of the code to isolate issues.
Contact our Support team if you need additional help.
If you have any questions about using Code blocks or customizing your email designs, our Support team is happy to assist you.
Reach out by emailing support@delivra.com.