In the previous short article, we reviewed how to adapt custom HTML template emails to work in the Stripo editor so that you can edit photographs, one-way links and textual content by means of CKEditor with no the «looking under the hood» (in the HTML code of the e mail template).
In today’s write-up, I want to reveal a more complicated topic — how to make an email template made on the 3rd side (in effect — custom format) turn out to be absolutely adapted in Stripo for editing any component (container/construction/strip) and base blocks in drag’n’drop method, get the most of the settings and attributes of the Stripo editor.
For case in point, we will use the similar hotwire template, taken from reallygoodemails.com (you can obtain the HTML of email here).
Framework of nesting Stripo email messages
Very first of all, let’s seem at the nesting of elements in Stripo emails, made up of strips, buildings, containers and blocks.
Let’s think about an example of a Stripe in which there is a structure with two containers and blocks «Picture» and «Text».
As you can see from the diagram, all factors are desk cells with specified classes.
- Strip with class esd-stripe
- Structure with class esd-construction
- Container with class esd-container-frame
- Block with courses, in this case esd-block-image, esd-block-text.
If your layout is built on a similar basic principle, this will make it possible for the most easy adaptation of the e mail in Stripo.
Strip → Composition × n → Container × n ≤ 4 → Block × n
- there can be as many Structures in the Strip
- there can be Containers in the Framework, now not far more than 4, but shortly we will give the prospect to increase the variety of Containers and make them dynamic
- any quantity of Blocks can be in the Container.
Pretty much often there is a space to add a class for strips, buildings and/or containers. It is not constantly achievable to add a class for blocks so that they are correctly adapted simply because their format is very distinct. For that reason, we recommend incorporating the esd-block-html class to the wrapper of such a block, then Stripo will be able to edit these types of a block as a result of HTML, with energetic block controls (conserve, shift, duplicate, delete). Or create the identical information of the e-mail based on our blocks, just dragging them into containers, but this we will do in the 3rd component of the post.
Checklist of available block classes
esd-block-picture — a class for defining the «Picture» block
esd-block-textual content — a class for defining the «Text» block
esd-block-button — a class for defining the «Button» block
esd-block-spacer — class for defining the «Spacer» block
esd-block-social — class for defining the «Social Network» block
esd-block-html — a class for defining the «HTML» block
esd-block-menu — a class for defining the «Menu» block.
Let us start adapting our email template.
The course of action of email template adaptation
Let’s start out by searching for a table cell wherever you can insert a class for the strip. These kinds of a table was found — this is the total email header. Set the cell class esd-stripe.
You can check out the outcome immediately — hover the mouse or click on this region, you will see a frame with the controls.
Let’s try to copy the present strip with the cap and make a new strip previously with the format of Stripo.
Now include a class for the esd-construction.
Equally to the strip, the body has a frame and controls.
Simple Blocks Adaption
Now we adapt the existing content in the header.
There is one nesting in the HTML header of the e-mail that would allow us to organize the Container. But in fact, you can do without it, considering the fact that we know that we need containers to unite many Blocks. In this circumstance, we have 1 «Picture» block and a set of menu backlinks.
We turn the pre-header, the brand and the menu into blocks.
Now let us proceed to a more complex block — the products card. In this article, we lack a person nesting — the Container, so that it is possible to drag blocks from the block panel.
First, we add classes for the strip and the structure — almost everything is simple:
Following, we find the cell of the desk in which the text «3-Star Accommodations TORONTO» is located, and reveal to it the class esd-container-frame — this will be our Container.
Then all that is located ① ② in the cell esd-container-frame, wrapped in a table — this will be our blocks. All the articles of this space is plain text and a picture with stars, so we get the Text and Graphic blocks. We specify the class esd-block-graphic cell for the initial line, and the esd-block-textual content block for the next line.
Reduce out the pieces of code corresponding to the blocks and insert inside the cells of the new desk.
Stripo turned this material into native blocks with controls. In addition, it is now attainable to «throw» blocks from the panel of blocks into the container’s spot.
We turn the sections with the price and the button into blocks:
The source code for the price tag of the value allowed to add courses to existing cells. And the button code is not. You need to wrap it in a table and apply the esd-block-html class, not the esd-block-button, which would be logical. Why is that? For the reason that in this situation, the existing button is not acknowledged as a Stripo button owing to too a lot big difference in layout.
In such circumstances, it is convenient to use the esd-block-html class in order to leave the source code but to be able to control the block.
In exactly the similar way, we adapt the remaining tailor made HTML to Stripo blocks. You do not need to do everything manually each individual time for all the cards. It is enough to make two playing cards in the exact composition, and then copy this composition with the button that is in the controls, and then just replace the textual content and photos.
We managed to figure out how to turn arbitrary HTML into Stripo blocks, which ultimately created it possible to more comfortably manipulate the articles of the electronic mail (except for immediate enhancing of text and images, we can duplicate, shift, delete and save blocks, containers, buildings and strips).
Nevertheless, there are some limits that do not let Stripo to maximize its capabilities. In the up coming short article, I’ll inform you and demonstrate how to use Stripo to the complete and make the exact template from scratch, suitable in the editor!
In the meantime, do not be reluctant to try to adapt your e-mail templates by yourself to work in our editor. If in the procedure you have any queries, the problems associated with the adaptation, make sure you produce to us at firstname.lastname@example.org and we will be happy to help you!