Customizing an HTML Email Template

When you export your HTML template to Reteno, simply pasting the code in the code editor is not enough. This way you won’t be able to edit elements (Container/Structure/Stripe) and blocks in a drag-n-drop mode. To take full advantage of the Reteno editor, the template needs to be optimized using its functionality.

šŸ“˜

Note

An email message has three formats: plain text, HTML, and AMP. The plain-text version is generated automatically from the HTML version — mailbox providers require its presence. Its appearance in the message source is standard behavior, not injected foreign code.

Basic Customization

Apply basic customization if you don’t need to change the layout but only want to edit the content: text, links, images.

For this instruction, you'll copy the HTML template of the email by Wemo from reallygoodemails.com, paste it to the editor and adapt step by step. You can paste your own HTML template or take it from any other email template resource.

  1. In your Reteno account, go to Messages → Messages → Email.
  2. Click New Email and select Code with HTML.
Create new Email page in Reteno with the Messages menu and Code with HTML button highlighted
  1. Paste the code in the editor.
HTML code pasted into the Reteno code editor with the code block highlighted
šŸ“˜

Note

This flow expects the HTML code pasted directly into the editor — there's no separate form for uploading an HTML, MJML, or ZIP file.

  1. Click Custom CSS in the right corner to unroll it.
Custom CSS tab highlighted in the Reteno code editor, showing an empty CSS panel
  1. For convenience, split HTML and CSS snippets between the corresponding sections. CSS styles are often wrapped within the <head> of the HTML code. For example:
CSS style tag highlighted within the head section of the HTML code in the code editor

You need to cut everything wrapped between <style></style> tags and paste it to the CSS section.

This is how it will look after splitting:

HTML and CSS code shown separated into the code editor's HTML and Custom CSS panels
  1. The images aren’t displayed so you need to add them manually. You can do it in the code editor or block editor.

To add an image in the block editor, close the code editor, click the container with the image and click the Replace image icon in the Image settings.

Image settings panel in the Reteno editor with the Replace Image icon highlighted

Upload the image in one of the ways:

  • Upload the image from the computer;
  • Paste it as the external link.

Repeat the same process for the rest of the images. Once all images are added, click Preview to preview the template on desktop and mobile.

Reteno email editor toolbar with the Preview button highlighted
  1. To edit text, you need to apply the esd-text CSS class to the tag that wraps the entire text block. Usually, these are p, div, td, h1, h2, h3, span tags. You can apply the esd-text class to the span tag only if it wraps the entire text and not a part of it.
Text block selected in the email editor with its esd-text class highlighted in the code editor

After the esd-text class is set, click the text container in the template and edit it as needed using the editing toolbar that rolls out on top.

Communicate with your audience instantly via 8 efficient chennels.

Advanced Customization

You’ll need advanced customization when you need to change the layout of the email: edit stripes, structures or containers.
For a better understanding of the process, let's see what elements the email template consists of in the Reteno editor.

HTML Hierarchy

In the Reteno drag-and-drop editor, emails consist of:

  • stripes;
  • structures;
  • containers;
  • blocks.

A stripe is the highest element of HTML elements that can nest several structures. Structures can nest containers, and containers can nest blocks.

Take a look at the example of a stripe that nests one structure with two containers and blocks Image and Text.

HTML code with the stripe, structure, container, and block elements numbered 1 to 4

1. Stripe with the esd-stripe class.

2. Structure with the esd-structure class.

3. Container with the esd-container-frame class.

4. Block with the esd-block class.

If your template has a similar HTML layout, it will be easier to customize it in Reteno. There is always a space for a new Stripe, Structure or Container. But due to the specific layout of the blocks, it is not always possible to add a class for them ensuring proper customization. We recommend wrapping a new block with the esd-block-html class. This way, you’ll be able to activate control buttons (Save as module, Move, Duplicate, Delete) and edit such a block in HTML.

Available block classes

  • esd-block-image – class for the Image block;
  • esd-block-text – class for the Text block;
  • esd-block-button – class for the Button block;
  • esd-block-spacer – class for the Spacer block;
  • esd-block-social – class for the Social block;
  • esd-block-html – class for the HTML block;
  • esd-block-menu – class for the Menu block.

Customize the Stripe

Find the snippet you can apply a esd-stripe class to. In our template, it’s the entire email body.

Email body highlighted as a Stripe element with the esd-stripe class underlined in the code editor

After adding the class, Reteno identifies the HTML snippet as a stripe and displays the stripe settings on the left. Use them to edit the Stripe.

Customize the Structure

Apply the esd-structure class to the Structure.

Structure label highlighted in the email editor with the esd-structure class underlined in the code editor

The side panel with settings will appear on the left.

Customize Basic Blocks

Now let's put the existing content within blocks and containers. The upper part of the email contains a picture (white structure), logo and text. Let's apply the corresponding classes to them:

Logo and image – esd-block-image

Logo image container selected in the editor with the esd-block-image class underlined in the code editor

Text – esd-block-text.

Text block selected in the editor with the esd-block-text class underlined in the code editor

After customization, this section will look as follows:

Email preview showing the WeMo logo, headline, and holiday lights photo after customization

Customize the Container

To customize the product card with the button, we need to add a container. Find the snippet nesting the product photo with the alt text Wemo Mini and apply the esd-container-frame class to it. This will be the first container.

Wemo Mini product container selected in the editor with the esd-container-frame class underlined in the code editor

Within the container, add the esd-block-image class to the image.

Wemo Mini product image selected in the editor with the esd-block-image class highlighted in the code editor

Find the second snippet with the Wemo Mini text and apply the esd-container-frame class to it.

Wemo Mini text and button container selected in the editor with the esd-container-frame class underlined in the code editor

Code in the first and second sections of the esd-container-frame snippets is nested within the blocks.

Code editor showing the text block and button block numbered 1 and 2, nested within the container's HTML

Text and a button are the only content of this container. Apply the esd-block-text class to the first section and the esd-block-button class to the second section.

Wemo Mini text section selected in the editor with the esd-block-text class underlined in the code editor
Buy Now button selected in the editor with the esd-block-button class underlined in the code editor

Transform the remaining HTML using this method. You don’t have to adjust each card manually. Customize one structure with containers and then duplicate it or its containers with the Duplicate button.

Duplicate icon highlighted in the container toolbar with its tooltip shown above the Wemo Mini image

Now you know how to customize your own HTML template and edit text, images and links in the Reteno editor. Note that after editing you can save the whole template to your template library. You can also save its separate sections as synchronized modules.


Did this page help you?