Import a Custom HTML Template

read
Last updated at:

Overview

Find out how to import a custom HTML template into Klaviyo. 

We only recommend using custom HTML for technically savvy marketers, or for anyone who has access to a developer. While our product does support custom HTML, our support team cannot help you build out your custom templates beyond offering the general guidance covered in this documentation. To maintain the security of your data, Klaviyo's support team is not able to open your HTML files.

Uploading a Custom HTML Template

Custom HTML templates must be .html files and must include an {% unsubscribe %} link. 

  1. Navigate to the Email Templates tab
  2. Click Create Template
  3. Toggle to Import
    2019-10-07_13-54-41.gif
  4. Enter a name for your template and upload the HTML file of your template
  5. Upload any images or assets referenced in your HTML
  6. Click Import Template

Adding Images and Attachments

You can reference images and attachments by uploading a zip file that includes your attachments and referencing them by their filename within your template.

When you click to import your template, these images and assets are automatically added to our CDN and their references are updated within your template.

ezgif.com-video-to-gif_updated.gif

Adding Hidden Preview Text to a Custom HTML Template

If you’d like to set the preview text for a custom HTML template (rather than letting inboxes pull preview text from your message content), add the code block below to your template. This code should be added immediately after the opening <body> tag of your template.

<div style="display:none; font-size:1px; line-height:1px; max-height:0px; max-width:0px; opacity:0; overflow:hidden;">
Insert preview text here.
</div>

Additional Resources

x
Was this article helpful?
110 out of 242 found this helpful