MailChimp Integration
Kant Email includes an all-in-one MailChimp version, which you can import and customise in their email editor.
Structure
The MailChimp-integrated files can be found in the Files/mailchimp
folder from your download.
It has the same structure as the Files/html
folder, only that all files inside it are ready to use with MailChimp. Use the file explorer below to see the folder contents:
Only the all-in-one template .zip file from the /all-in-one folder can be uploaded directly to MailChimp in order to be used in a campaign. All others are just for creating a MailChimp-compatible template yourself, which you then upload to their service.
If you're planning on creating a MailChimp template yourself, please first take a look at their documentation on importing a custom template, and then at our own templates to understand how to do it.
Working with MailChimp
We've made a video tutorial on working with our email templates in MailChimp. Please watch this first, as it covers the most common questions and issues:
Uploading
Inside the Files/mailchimp/all-in-one/
folder, you'll find .zip file that you need to upload to MailChimp.
- In MailChimp, go to Templates → Create Template → Code your own.
- Choose the "Import zip" option, name your template, and browse for the .zip file mentioned above.
Important
Once the import is finished, you will be redirected to the Template edit screen, which shows a preview of your imported template. Do not try to use the "Design" view here, as this is not the place where you customise your email layout for your campaign. Instead, just click "Save & Exit" on the bottom right of the screen.
MERGE Tags
Kant Email uses many of MailChimp's MERGE tags. Let's go through each type.
Template MERGE Tags
Added to supported HTML tags, the following attributes enable section reordering, cloning and hiding, as well as text and image editing in MailChimp:
mc:edit
mc:repeatable
mc:variant
mc:hideable
See the MailChimp template tags reference.
Campaign MERGE Tags
These pull in data from your campaign and/or generate text and links dynamically.
*|MC:SUBJECT|*
- sets the<title>
tag's content, useful when email is viewed online*|MC_PREVIEW_TEXT|*
- outputs the email preview text*|LIST:COMPANY|*
- shows company info, as defined in your account*|LIST:ADDRESS|*
- inserts company or organization postal mailing address or P.O. Box as plain text*|ARCHIVE|*
- URL to view the email in the browser, on your campaign's page*|UNSUB|*
- generates the unsubscribe URL*|DATE:Y|*
- inserts the current year*|REWARDS|*
- outputs the MonkeyRewards badge, only if you're on a free MailChimp plan
Automation MERGE Tags
These MERGE tags are available for the notification sections.
*|ABANDONED_CART|*
- loops over items in cart for e-commerce automations*|HTML:ORDER_SHIPPING_ADDRESS|*
- outputs formatted shipping address*|HTML:ORDER_BILLING_ADDRESS|*
- outputs formatted billing address*|PRODUCT:IMAGE_URL|*
- generates URL for a product's image*|PRODUCT:DESCRIPTION|*
- inserts product's description*|CART:URL|*
- generates URL to shopping cart*|ORDER_TOTAL|*
- shows order total amount*|ORDER_TAX_TOTAL|*
- shows order tax total*|ORDER_SUBTOTAL|*
- shows order subtotal*|PRODUCT:TITLE|*
- inserts product's title*|PRODUCT:PRICE|*
- inserts product price*|FNAME|*
- outputs recipient's first name
If you need to customise the product to use other MERGE tags, see MailChimp's MERGE tags cheat sheet.
Customisation
The template has many customisation options available through MailChimp's interface, organised by section (see video @ 7:50).
These settings include:
- page background colour
- responsive font settings
- customising buttons background and text colour
- setting the background images and colours of sections
Image Editing
When you replace an image through MailChimp's email editor, it does some nasty things to the underlying HTML. These can make images look bad on mobile, and even blow up retina images in Outlook.
To avoid this, make sure that no matter the dimensions of the image you use (retina or not), you always:
- uncheck "Keep proportions". Otherwise MailChimp adds inline height CSS that affects image rendering;
- clear out the value from the "Height" field;
- finally, have the "Width" set to the original dummy image width. Kant Email for MailChimp uses non-retina dummy images exactly for the purpose of guiding you through this process.
Above: replacing a 260x170 dummy image with a retina image, in MailChimp.
MailChimp's "Layouts" feature
Our all-in-one template works with MailChimp's "Layouts" feature (explained in the video).
Although needed for an all-in-one template, this feature isn't recommended for cases where you need only a few modules in a template in MailChimp, with no other modules to choose from. This is a common case for freelancers that provide pre-built templates to their clients by building templates manually from the individual sections we provide.
If you're a freelancer building ready-made layouts for your clients by using the base layout file and individual sections, we strongly advise removing the mc:variant="..."
attribute from all sections that you use. This way, your client will only see the intended layout.
Limitations & Other Notes
Most visual email builders are limited in functionality, meaning they do not or cannot allow fine-tuned control over the template as if you were to manually edit the HTML code. This is especially relevant to MailChimp's outdated third-party template editor, so please take the following into account.
Conflicting Browser Plugins
The Grammarly browser plugin severely affects online email editors, including MailChimp. By injecting itself into the page, it corrupts email HTML, resulting in a broken template.
Warning
Please disable any plugins such as Grammarly or AdBlock when using an online email builder. As a rule of thumb, we recommend disabling any plugins that manipulate content on a web page when using any of the integrations provided with our email templates.
Hamburger Menu Icon
The hamburger menu icon is visible only on the mobile breakpoint, so it can't be edited with MailChimp's visual editor. Instead, you need to edit it manually in the HTML:
<!--[if !mso 9]><!-->
<a class="menu-trigger show-on-mobile mobile-center" style="display: none; background-color: #FFFFFF; position: relative;">
<img src="https://gallery.mailchimp.com/[...].jpg" alt="Menu" width="20" style="padding: 10px 20px; float: left; margin-left: -100em; max-height: 0;">
</a>
<!--<![endif]-->
<div class="hamburger-menu">
<!-- remaining HTML truncated for demo purposes... -->
Background Images
MailChimp's editor is unfortunately very limited when it comes to background images, at the moment.
You can set a module's background image in the "Design" tab, by replacing the default dummy image. Other settings such as background size, position, tiling (repeat), and colour are available:
The downside of this is that it only works by us having to pre-define embedded CSS in the template's <style>
tag. This means that email clients that don't support embedded CSS and CSS background images, will not show the image.
Outlook Background Images
Same as with the above, MailChimp does not fill in the URL for the image in the <v:image src="..." />
from the VML code. You also need to do this manually, by editing the template HTML code.
This is very important!
Setting a background image just with MailChimp's visual editor does not update this code. Outlook will not show the correct image unless you manually edit the HTML.
Tip: use the StampReady integration we provide, to build your layouts in StampReady's modern builder and then export to use in MailChimp. StampReady's editor properly updates background images.
Code Bloat
Unfortunately, MailChimp's editor currently duplicates the @media
CSS query, for every declaration in part.
For example, something like this:
@media only screen and (max-width: 699px) {
.wrapper {min-width: 100% !important;}
.row {width: 90% !important;}
}
... will be transformed by MailChimp into:
@media only screen and (max-width: 600px) {
.wrapper {min-width: 100% !important;}
}
@media only screen and (max-width: 600px) {
.row {width: 90% !important;}
}
This increases the message size considerably, and can potentially lead to message clipping in Gmail. Increased CSS size can also lead to Gmail not taking the CSS into consideration at all. While we did test and found that Gmail's limit is usually not reached with our templates, always send yourself a test email to check.
Note: the more modules you add to your template, the higher the risk of Gmail clipping your email becomes.
Slow/buggy interface
Please note that the MailChimp editor can be slow at times. This is a limitation of their template builder, and unfortunately there's currently no way to overcome it.
Scrolling issues
MailChimp's builder has a bug that sometimes disables scrolling when you add a new section. We've seen that adding another section, or saving and refreshing, usually takes care of it.
What happened to my content?
MailChimp has a 'feature' called Recovered Content, that tries to be smart and match content from previous campaigns into your layout. Although well intended, this is frustrating when you add a new section and see its layout/formatting broken, because an image was completely replaced with some text, for example (check the video tutorial, it happened to us too).
What usually works is removing and then re-adding the section that got corrupted by this recovered content functionality. Sometimes, you might even need to save and refresh the page.
Preview looks weird
MailChimp's application styling sometimes overrides our template's styles. This is clearly visible in the visual editor, but can sometimes be seen even when using their preview tool.
Always send yourself an actual test email from MailChimp's preview tool, and check it in a real email client.