Allow <Style> tags in the body of email or a variable <style> tag snippet in the head of templates | Community
Skip to main content
Melissa_Neikirk
Level 2
April 12, 2016
Investigating

Allow <Style> tags in the body of email or a variable <style> tag snippet in the head of templates

  • April 12, 2016
  • 2 replies
  • 3387 views

If you wish to do any <Style> tag code currently you need to put it in the head of an email. Which makes sense, if you are not using a set template for your team. We have used the <style> tag in the body of emails to adjust global mobile styles to fit the content of the email without impacting the full global template in our last email tool. It allowed us to swap images for mobile when a more vertical image would look better than the desktop top landscape version that was specific to that email campaign without impact the global template. Now if we want to adjust the code specific to an email we have to code it all instead of using a template.

If we can't allow <Style> tags - can we at least allow for a <Style> tag variable snippet for the head of an email to allow us to add styles specific to that email without having to code the full html and be able to use templates?

2 replies

Justin_Cooperm2
Level 10
April 13, 2016

This will be totally different and likely work how you want in the new Email Editor, which comes out in the upcoming Spring release.

Melissa_Neikirk
Level 2
April 13, 2016

That would be nice. I am excited to see what you mean, and how the new editor will update the tool. Thank you for the information! I didn’t realize that update was coming so soon. When is the Spring release?

Justin_Cooperm2
Level 10
April 13, 2016

June 1st. You will be able to insert a variable into anywhere in the Email Template. This variable will then be editable within the Email Editor, either through a simple textbox or through a HTML Block editor (which probably makes most sense for you).

February 6, 2020
No text available