@jaah ,
AJO provides a user-friendly interface for creating email templates and fragments.
When you add custom HTML and CSS code to your email templates or fragments, there's a risk that the editor may switch to compatibility mode to ensure that the email remains functional across a wide range of email clients.
Here are some suggestions to work with custom code in AJO and avoid compatibility mode:
Instead of relying on linked stylesheets or external CSS, use inline CSS styles as much as possible. Many email clients, especially Outlook, have limited support for linked stylesheets. Inline styles can ensure that your styling is more consistent.
Ensure that your email template or fragment is responsive, as this can help with rendering on various devices and email clients.
Limit Custom Code: Try to minimize the amount of custom code used in your emails. The more complex your code, the more likely the editor is to switch to compatibility mode.
Clean HTML: Ensure that your HTML code is clean and well-structured, following best practices.
Remember that compatibility mode is there to ensure that your email is viewable in a wide range of email clients. While it can be frustrating for those who want more control over the HTML and CSS, it's a trade-off to ensure emails are accessible to as many recipients as possible.