globals for email modules

Regular Contributor

Hi, I am creating some custom modules that will be used for email tempaltes. Unfortunately using the 'import' statement doesn't work for email modules. I want to create some global variables (with style values), that will be used in all email modules. How can I achieve that, without importing that file that holds the global variables?

Reply
0 Upvotes
2 Replies 2
Community Manager

Hi @andre9000,

 

Are you still struggling with this matter? If so, let me know and I can work on this matter with you. 

 

If you did find a solution, do you mind sharing it with the Community?

 

Thank you,
Jenny


Did my post help answer your query? Help the Community by marking it as a solution
Reply
0 Upvotes
Highlighted
Top Contributor

Hi @andre9000,

If you want to use Custom Modules for your emails, you can add them in the Template in the same way you add "Rich Text" module. If using Beta version, do select "Email" for Email specific Custom Module.

If you want to have a global typography in your email, I would suggest you to add global styles with data-hse-inline-css="true".


<style type="text/css" data-hse-inline-css="true">
      p {
         font-family: Arial, sans-serif;
      }
 </style>


This way, it goes to all p elements and adds the particular styling.

You've to add in the <head> part of your template in this way :- 



edit-template-head-markup.png