Can someboday tell me why stupid Marketo encases the fields I edit with the email editor with P tags. | Community
Skip to main content
James_Allan
Level 1
December 10, 2019
Question

Can someboday tell me why stupid Marketo encases the fields I edit with the email editor with P tags.

  • December 10, 2019
  • 1 reply
  • 2013 views

 I tried to disable this in the admin area to no avail.  I then wrote a style rule for the custom template to override the vertical margin associated with said tags which works fine when I test in the admin area but fails in production when emails are sent.  Marketo, you suck!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jay_Jiang
Level 10
December 11, 2019

Yes this is annoying. Tip: you can use <div> tags which won't have default margins like <p>

Dave_Roberts
Level 10
December 14, 2019

Hey James,

I agree this isn't really a helpful default that Marketo sets out-of-the-box. You can adjust this setting for both LPs and EMs under the Email section in the Admin menu. 

Admin > Email > Edit Text Editor Settings > change both dropdowns to "none".

 

By default, the LPs are set to have a <div> around the content and the EMs are set to have a <p> around the content.

Another thing that I've noticed is that you'll occasionally get a "not-so helpful" hand with <br> tags being injected into empty divs inside an editable area >> EX. <div class="spacer"></div> becomes <div class="spacer"><br></div>. To work around this, I'll usually put an empty comment tag inside the empty element >> EX. <div class="spacer"><!-- --></div> and this seems to prevent the <br> from getting added. 

Hope this is helpful, let me know if you run into any issues changing this.