Is there a way to declare an email template as RTL (right-to-left)

Empty

Hi @YHatam,

If your keyboard is set to a RTL language and you’re typing in a rich text module, HubSpot should detect it and switch the orientation accordingly, at least in Marketing Hub, CMS Hub and the Knowledge Base app, see this thread. It looks like this feature is not yet available across all products so I recommend upvoting the posts in that thread and following it.

Currently, there isn’t any option to set RTL on a template level (in the drag and drop email editor).

Hope this helps!

The rich text is RTL but the mail that sent is not

Hi @YHatam,

I’d recommend commenting on this thread then to let the product team know that the functionality isn’t working as intended – at least it isn’t for you: https://community.hubspot.com/t5/HubSpot-Ideas/RTL-right-to-left-amp-amp-rich-text-functionality/idi-p/38023

Best regards!

Hi @YHatam, you can always write your own HTML E-Mail template in the design-manager. The “downside” would be that it wouldn’t be “drag&drop”.

Also: If the reciever of your mail gets it in “ltr” and not “rtl” it might be his email-client which is set to ltr. If this is the case you can’t do very much. Personaly I would suggest to write your own HTML template and modify it to your needs. Or you can use something like https://stripo.email/ and export it either to HTML(and modify it in Adobe Brackets, Visual Composer, Sublime, atom.io…) or directly to HubSpot(don’t recommend this for security reasons)

best,

Anton

Hi @YHatam,

do you/your developers create your own E-Mail template or are you using the “drag&drop builder”?

If your creating your own (HTML) template you should be able to add

<html dir="rtl" lang="ar"> {# replace 'ar' with your language-code #}

to the head-area of the template.

If you’re using the drag&drop builder you could create a very simple custom module for E-Mails with exact the same code and place it in the template. Additionaly you could add following things to the module:

- Boolean field(checkbox) to turn the function on/off
- a style tag for CSS text-orientation.

Here’s an idea for the custom module.

{% if module.enable_rtl %}
<html dir="rtl" lang="ar">
<style>
body{
direction: rtl;
}
</style>

{% endif %}

Also: You can always mark the content and set it to “right” :slightly_smiling_face:

hope this helps

best,

Anton

There is no option to use HTML in templates