{"id":39428,"date":"2024-12-17T10:38:00","date_gmt":"2024-12-17T05:08:00","guid":{"rendered":"https:\/\/email.uplers.com\/blog\/?p=39428"},"modified":"2024-12-17T17:22:42","modified_gmt":"2024-12-17T11:52:42","slug":"mailchimp-custom-email-template-coding-guide","status":"publish","type":"post","link":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/","title":{"rendered":"How to Code Mailchimp HTML Templates"},"content":{"rendered":"\n<p>[This post was originally published on 6 May 2024. It has been updated on 17 Dec 2024.]<\/p>\n\n\n\n<p>The word \u201ccustom\u201d can be confusing. Two years ago, one of our clients who had not the slightest idea about development or coding, was quite shocked to learn that \u201ccustom coding\u201d does not refer to DIY coding.&nbsp;<\/p>\n\n\n\n<p>Because our developers had been custom-coding templates in Mailchimp, the venerable client had to wait beyond his apparently self-appointed TAT. \ud83d\ude0a<\/p>\n\n\n\n<p>On the surface, it may seem there\u2019s no difference between the two. But probe deeper, and you\u2019ll find that \u201ccustom\u201d means both \u201ctailor-made\u201d and \u201cconventional.\u201d In other words, custom coding an email template on a particular ESP requires a thorough practical understanding of said ESP\u2019s technical convention\/ecosystem.&nbsp;<\/p>\n\n\n\n<p>So if you want to know how to create a template in Mailchimp, you need to work within the technical compass of Mailchimp. This would involve knowing how Mailchimp works, what the ESP allows or prohibits, how it reacts, whether or not it sheds code, etc.<\/p>\n\n\n\n<p>And that\u2019s where experts like us come in. In this developer guide, we\u2019re putting out all the stops to show you how to <a href=\"https:\/\/email.uplers.com\/mailchimp-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">code Mailchimp HTML templates<\/a>. From the top!\u00a0<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#Goal\">Take A Goal-centric, User-friendly Approach<br \/><\/a><\/li><li><a href=\"#Embed\">Embed CSS Styles into The HTML Code<br \/><\/a><\/li><li><a href=\"#Arrange\">Arrange Content Blocks within Rows<br \/><\/a><\/li><li><a href=\"#Coding\">Coding for Image, Text, And CTA Button<br \/><\/a><\/li><li><a href=\"#Adding\">Adding The Email Footer<br \/><\/a><\/li><li><a href=\"#Upload\">Upload Your Template to Mailchimp<br \/><\/a><\/li><li><a href=\"#test\">Test Your Email for Rendering across Clients&nbsp;<\/a><\/li><\/ul>\n\n\n\n<p><strong>Read more<\/strong>: <a href=\"https:\/\/email.uplers.com\/blog\/mailchimp-new-email-builder\/\" target=\"_blank\" rel=\"noreferrer noopener\">A Complete Guide to Mailchimp\u2019s New Email Builder<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Code Custom Mailchimp Templates<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Goal\">1. Take A Goal-centric, User-friendly Approach<\/h3>\n\n\n\n<p>To begin with, identify your goal. What is it you\u2019re trying to achieve with a custom coded email template? Much of coding depends on having a prior idea about the placement of various components in your email.&nbsp;<\/p>\n\n\n\n<p>For instance, if you\u2019re creating a promotional email which offers a gift card, it would contain a CTA button either on the hero image or just after. Again, if you\u2019re showcasing a brand\u2019s product line, you\u2019re thinking of multiple CTAs across the email. <\/p>\n\n\n\n<p>Perhaps you want to embed the images and CTAs in a Z-pattern to improve readability, and so on. All this is part and parcel of knowing how to code a Mailchimp template.\u00a0<\/p>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-17418 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/mailchimp-email-templates\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"200\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2017\/12\/Mailchimp-design-coding.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2017\/12\/Mailchimp-design-coding.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2017\/12\/Mailchimp-design-coding-300x75.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2017\/12\/Mailchimp-design-coding-768x192.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2017\/12\/Mailchimp-design-coding-624x156.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Embed\">2. Embed CSS Styles into The HTML Code<\/h3>\n\n\n\n<p>Mailchimp automatically <a href=\"https:\/\/email.uplers.com\/blog\/conditional-css-for-email\/\" target=\"_blank\" rel=\"noreferrer noopener\">incorporates the CSS styles in your code <\/a>into the HTML code of the email template. So there\u2019s no need for a separate CSS file. This reduces code bloat.&nbsp;<\/p>\n\n\n\n<p>Consider the following code snippet. When you save this code in Mailchimp, the CSS styles defined in the <strong>&lt;style&gt;<\/strong> tag will be integrated or \u201cinlined\u201d into the HTML code of the email template. Besides limiting code bloat, this also ensures consistent rendering across email clients that may not support CSS stylesheets.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8.jpg\" alt=\"CSS Styles Embedding\" class=\"wp-image-39429\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8.jpg 1000w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-300x300.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-150x150.jpg 150w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-768x768.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-140x140.jpg 140w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-624x624.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-600x600.jpg 600w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-24x24.jpg 24w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-48x48.jpg 48w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image8-96x96.jpg 96w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Read more<\/strong>: <a href=\"https:\/\/email.uplers.com\/blog\/embed-polls-surveys-emails-via-mailchimp\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Embed Mailchimp Survey &amp; Polls In Emails To Boost Your Campaign ROI<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Arrange\">3. Arrange Content Blocks within Rows<\/h3>\n\n\n\n<p>Like we mentioned earlier, having a prior idea about the placement of various components in your email is crucial while coding. This idea will guide your coding, ensuring each block operates as intended within the layout. Now, to give a structure to your code, you need to think about how the content blocks in the email will operate.&nbsp;<\/p>\n\n\n\n<p>Take editable blocks, for instance. These are sections within your email that the designer can modify without needing to fiddle with the code. Likewise if the designer wants to change the order of these editable blocks. These blocks should be placed within rows for better organization, as shown below.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"1000\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7.jpg\" alt=\" Creating Rows for Content Blocks \" class=\"wp-image-39431\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-300x300.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-150x150.jpg 150w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-768x767.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-140x140.jpg 140w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-624x623.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-600x600.jpg 600w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-24x24.jpg 24w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-48x48.jpg 48w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image7-96x96.jpg 96w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Coding\">4. Coding for Image, Text, And CTA Button<\/h3>\n\n\n\n<p>Keep in mind that whenever coding Mailchimp HTML templates, you\u2019ll need to add <strong>mc:edit<\/strong>. In the following example, the attribute is added within the <strong>&lt;image&gt;<\/strong> tag.&nbsp;<\/p>\n\n\n\n<p>(<strong>mc:edit<\/strong> is not part of standard HTML. It\u2019s a custom attribute that is used within Mailchimp email templates. In this regard, feel free to read Mailchimp\u2019s proprietary <a href=\"https:\/\/templates.mailchimp.com\/getting-started\/template-language\/\" target=\"_blank\" rel=\"noreferrer noopener\">Template Language<\/a> documentation.)\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"429\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6.jpg\" alt=\"Coding for Image\" class=\"wp-image-39432\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6-300x129.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6-768x329.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6-624x267.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image6-600x257.jpg 600w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<p><strong>N.B.<\/strong> Mailchimp tends to strip out the attributes that define the height and width of images. Now this creates a problem if you want to use retina images i.e. images that have twice the number of pixels per inch than regular images. In the absence of attributes, the images will appear larger than intended, leading to disrupted viewing. There are two ways to deal with the problem. One, you can scale down the retina images <em>before<\/em> uploading them to Mailchimp. Two, you can add the image size attributes manually <em>after<\/em> editing the Mailchimp template.<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"695\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10.jpg\" alt=\"Non-retina vs Retina Images\" class=\"wp-image-39434\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10-300x208.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10-768x533.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10-202x140.jpg 202w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10-624x433.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image10-600x417.jpg 600w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<p>Like images, you can add an editable section for the body copy as shown below.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"665\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11.jpg\" alt=\"Coding for Text\" class=\"wp-image-39435\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11-300x199.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11-768x510.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11-211x140.jpg 211w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11-624x415.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image11-600x399.jpg 600w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<p>Finally, the CTA button. Note that you can only use padded buttons in custom Mailchimp templates. Any styles you may have applied to the anchor tags of your custom button might be removed by Mailchimp\u2019s rendering environment. This once again reminds us of the importance of adhering to an ESP\u2019s native penchants.&nbsp;<\/p>\n\n\n\n<p>The click real estate will be limited to the CTA text. The viewer can\u2019t click on the space surrounding the text. Outside the text, the pointing hand will resolve into the default cursor. Below is an example of HTML code for adding a padded CTA button in a Mailchimp email template.<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"854\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5.jpg\" alt=\"Coding for CTA Button\" class=\"wp-image-39436\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5-300x256.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5-768x655.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5-164x140.jpg 164w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5-624x532.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image5-600x512.jpg 600w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Adding\">5. Adding The Email Footer<\/h2>\n\n\n\n<p>You might not have to make the footer section editable if the legal information doesn\u2019t require changes. However, if the designer wishes to incorporate a creative footer, ensure you include \u201c<strong>mc:edit=footer<\/strong>\u201d in your code.&nbsp;<\/p>\n\n\n\n<p>Also, remember to insert <strong>*|UNSUB|*<\/strong> in the code to generate the unsubscribe link, which is a legal requirement.<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"695\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3.jpg\" alt=\" Coding the Footer Section\" class=\"wp-image-39437\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3.jpg 1001w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3-300x208.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3-768x533.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3-202x140.jpg 202w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3-624x433.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image3-600x417.jpg 600w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure><\/div>\n\n\n\n<p>Speaking of merge tags, make sure you always add the following merge tags in your code:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>*|MC_PREVIEW_TEXT|*<\/strong> : To generate the appropriate preview text mid-campaign-setup<br \/><\/li><li><strong>*|ARCHIVE|*<\/strong> : To generate the \u2018View Online\u2019 link<br \/><\/li><li><strong>*|UPDATE_PROFILE|*<\/strong> : To give your subscribers the option to update their personal information or manage their email preferences<br \/><\/li><\/ul>\n\n\n\n<p><strong>*|TWITTER:FULLPROFILE|*<\/strong> : Or any other social media channel integration for that matter. In the present case, the \u201cFULL PROFILE\u201d argument will populate the email with your brand\u2019s X avatar, followers, follow link, and the latest tweets.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Upload\">6. Upload Your Template to Mailchimp<\/h2>\n\n\n\n<p>Once the HTML code is ready,&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Log in to your Mailchimp account<br \/><\/li><li>Go to \u2018Content,\u2019 and choose \u2018Email templates.\u2019&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"512\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image2-1.png\" alt=\"Upload Your Template to Mailchimp\" class=\"wp-image-39438\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image2-1.png 442w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image2-1-259x300.png 259w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image2-1-121x140.png 121w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Click \u2018Create template\u2019<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"122\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image9.png\" alt=\"Creating template in mailchimp\" class=\"wp-image-39439\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image9.png 519w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image9-300x71.png 300w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Select \u2018Code your own\u2019<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"79\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-1024x79.png\" alt=\"Mailchimp code your own template\" class=\"wp-image-39441\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-1024x79.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-300x23.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-768x59.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-624x48.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4-600x46.png 600w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image4.png 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Choose \u2018Import Zip\u2019 to upload a zip file with your template code<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"491\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1.png\" alt=\"Import Zip to upload a zip file\" class=\"wp-image-39442\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1.png 926w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1-300x159.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1-768x407.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1-264x140.png 264w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1-624x331.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/image1-600x318.png 600w\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Name your template, and click \u2018Upload\u2019<br \/><\/li><li>Make changes to your code or design<br \/><\/li><li>Once you\u2019re done editing your template, click \u2018Save and Exit\u2019<\/li><\/ul>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-25198 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/custom-email-templates-design-coding\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"200\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2021\/03\/5.jpg\" class=\"attachment-full size-full\" alt=\"Need help with the design and coding of your emails?\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2021\/03\/5.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2021\/03\/5-300x75.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2021\/03\/5-768x192.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2021\/03\/5-624x156.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"test\">7. Test Your Email for Rendering across Clients<\/h2>\n\n\n\n<p>Testing is the key to understanding how an ESP operates. In particular, examining how an ESP naturally behaves in coding provides valuable insights for developers to navigate around any limitations of the builder in future projects.<\/p>\n\n\n\n<p>From removing code to ensuring proper rendering, it&#8217;s essential to test your emails before sending them to your design team. In Mailchimp, you can easily test your template by sending a test email to your own email address. Learn more about <a href=\"https:\/\/mailchimp.com\/help\/preview-and-test-your-email-campaign\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">previewing and testing your emails in Mailchimp<\/a>.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Order Custom Coded Mailchimp Templates for A Decent Buck!&nbsp;<\/h2>\n\n\n\n<p>As official Mailchimp partners, we\u2019ve been delivering pixel-perfect <a href=\"https:\/\/email.uplers.com\/mailchimp-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">custom Mailchimp templates<\/a> to businesses worldwide for over ten years. Share your design brief with us. Our coding services begin at just $59. Rest assured, all templates undergo rigorous testing for rendering and responsiveness before delivery. Hustle!<\/p>\n","protected":false},"excerpt":{"rendered":"<p> Learn how to code your own custom email template in Mailchimp. In this guide, we\u2019re handholding you through the process \u2013 from soup to nuts. <\/p>\n","protected":false},"author":78,"featured_media":39443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[382],"tags":[1321,1322,1323],"class_list":["post-39428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-coding","tag-mailchimp-coding-custom-email-templates","tag-mailchimp-email-template-coding","tag-mailchimp-template-coding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp<\/title>\n<meta name=\"description\" content=\"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp\" \/>\n<meta property=\"og:description\" content=\"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Email Uplers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/email.uplers\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-17T05:08:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T11:52:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp-540x282.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Susmit Panda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:site\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Susmit Panda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/\",\"name\":\"A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp\",\"isPartOf\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg\",\"author\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3\"},\"description\":\"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.\",\"breadcrumb\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg\",\"width\":1170,\"height\":470,\"caption\":\"Coding Email Template in Mailchimp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/email.uplers.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Code Mailchimp HTML Templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\",\"url\":\"https:\/\/email.uplers.com\/blog\/\",\"name\":\"Email Uplers\",\"description\":\"Email Marketing Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/email.uplers.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3\",\"name\":\"Susmit Panda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png\",\"caption\":\"Susmit Panda\"},\"description\":\"A realist at heart and an idealist at head, Susmit is a content writer at Email Uplers. He has been in the digital marketing industry for half a decade. When not writing, he can be seen squinting at his Kindle, awestruck.\",\"sameAs\":[\"https:\/\/email.uplers.com\/\",\"https:\/\/www.linkedin.com\/in\/susmit-panda-965a1214a\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp","description":"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/","og_locale":"en_US","og_type":"article","og_title":"A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp","og_description":"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.","og_url":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/","og_site_name":"Email Uplers","article_publisher":"https:\/\/www.facebook.com\/email.uplers\/","article_published_time":"2024-12-17T05:08:00+00:00","article_modified_time":"2024-12-17T11:52:42+00:00","og_image":[{"width":540,"height":282,"url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp-540x282.jpg","type":"image\/jpeg"}],"author":"Susmit Panda","twitter_card":"summary_large_image","twitter_creator":"@email_uplers","twitter_site":"@email_uplers","twitter_misc":{"Written by":"Susmit Panda","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/","url":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/","name":"A Developer\u2019s Guide to Coding Custom Email Templates in Mailchimp","isPartOf":{"@id":"https:\/\/email.uplers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage"},"image":{"@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg","author":{"@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3"},"description":"Empower yourself with the knowledge to craft tailored email templates in Mailchimp. Dive deep into coding techniques, content block arrangement, and seamless integration strategies.","breadcrumb":{"@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#primaryimage","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/05\/A-Developers-Guide-to-Coding-Custom-Email-Templates-in-Mailchimp.jpg","width":1170,"height":470,"caption":"Coding Email Template in Mailchimp"},{"@type":"BreadcrumbList","@id":"https:\/\/email.uplers.com\/blog\/mailchimp-custom-email-template-coding-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/email.uplers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Code Mailchimp HTML Templates"}]},{"@type":"WebSite","@id":"https:\/\/email.uplers.com\/blog\/#website","url":"https:\/\/email.uplers.com\/blog\/","name":"Email Uplers","description":"Email Marketing Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/email.uplers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3","name":"Susmit Panda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png","caption":"Susmit Panda"},"description":"A realist at heart and an idealist at head, Susmit is a content writer at Email Uplers. He has been in the digital marketing industry for half a decade. When not writing, he can be seen squinting at his Kindle, awestruck.","sameAs":["https:\/\/email.uplers.com\/","https:\/\/www.linkedin.com\/in\/susmit-panda-965a1214a\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/39428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/comments?post=39428"}],"version-history":[{"count":6,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/39428\/revisions"}],"predecessor-version":[{"id":41953,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/39428\/revisions\/41953"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media\/39443"}],"wp:attachment":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media?parent=39428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/categories?post=39428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/tags?post=39428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}