How to create new email theme
Email theme allows you to define the visual style and structure of your email campaigns. It enables you to customize the appearance of emails sent to customers in response to specific events or actions.
To create a new theme, visit Marketing -> Follow Up Email -> Email Designer -> Manage themes and press the Add theme button.
The theme consists of the following properties:
- Theme name: unique name for this email theme.
- Email content format: template type. There's two available types: HTML (default) and Text.
- Email content template: the basic design template, which will use all subsequent templates.
The template covers all email areas - including headers, footers and even the main content. These editable areas are defined using special liquid variables:
-
Variable for the Header area:
{{ 'header' | area: 'Email header here...' }}
-
Variable for the Main body area:
{{ 'content' | area: 'Email text here...' }}
-
Variable for the Footer area:
{{ 'footer' | area: 'Email footer here...' }}
example:Since the template does not have to define all of the areas, we recommend that you use this construction - it will insert an area only if it is defined:
{% if 'content' | area %}
{{ 'content' | area: 'Email text here...' }}
{% endif %}
If you prefer to use callout-style, use the directive instead:
<?php echo $this->area('header') ?>
You can also use Variables and Callouts in your design.
All these parts can be previewed on the Preview Pane in both Desktop and Mobile versions.
You can also change the template area, and have an instant preview without saving. For that, you need to set the Auto-Refresh checkbox at Preview Pane, or press the Refresh button.
Save the theme and proceed with Manage Email Templates creation.