In your marketing automation account, in addition to the default templates, you can create your own custom themes.
Creating a custom theme matching your brand identity allows you to build emails or landing pages that strictly follow your graphic charter, with layouts tailored to your needs. The goal: simplify creation, ensure visual consistency, and save time on future campaigns.
There are two methods to create a custom theme in Webmecanik Automation: the visual method (the easiest) and the technical method (via code).
The Easiest Method: Create and Convert an Email in the Builder
If you do not want to code, the simplest way to create a theme is to build your email directly in the visual builder, then convert that email into a custom theme.
Steps:
Create a new email in your Webmecanik Automation account.
Open the Builder and design your layout from scratch using drag-and-drop: insert your logo, adjust colors, and arrange text blocks, images, and buttons.
Once your design is ready, use the native feature to convert the email into a custom theme for future reuse.
👉 For step-by-step instructions, refer to our dedicated guide: How to transform my email into a custom theme?
Advanced Method: Code Using MJML
For technical users who prefer full control over their templates through code, Webmecanik Automation's email builder relies on the open-source markup language MJML.
MJML automatically generates responsive HTML code across major email clients. If you have basic HTML and CSS knowledge, writing MJML is straightforward.
Steps:
Draft your code: Use the online editor at https://mjml.io/try-it-live/.
Build your theme: Refer to the official MJML documentation to construct your layout.
Save your file: Save your completed template file using the following naming convention:
yourtemplatename.mjml.twig.Package the theme: Compress the files into a standard
.ziparchive (see structure guidelines below).Import the theme: Upload the
.zipfile in Webmecanik Automation (Themes > Install a theme).Apply the theme: Create a new email and select your imported template.
⚠️ Important: All styles must be inline. The <mj-head> and <mj-style> tags are not supported.
Theme Folder Structure (.zip File)
When importing a theme via a .zip file, your folder hierarchy must strictly comply with the platform requirements to avoid import errors.
Key rules:
Directory structure: Keep the expected file/folder architecture (
htmlsubfolders and configuration files).The
config.jsonfile: Located at the root level, it defines the theme name and active features ("page","email", or"form").-
Zipping instructions: Zip the contents of the folder, not the parent folder itself.
Example: If your working folder is named
MyTheme, openMyTheme, select all files inside (includingconfig.json), and archive those selected items. Theconfig.jsonfile must sit at the root of the.zipfile.
Ready-to-Use Example
A sample theme file is attached directly to this article. Download it, review its structure, and use it as a reference or starting template for your custom developments.
Comments
0 comments
Please sign in to leave a comment.