Skip to content

Instantly share code, notes, and snippets.

@nikitasinelnikov
Created June 20, 2018 15:34
Show Gist options
  • Save nikitasinelnikov/3e5f7e250c6783cc14cdba80320b8dbb to your computer and use it in GitHub Desktop.
Save nikitasinelnikov/3e5f7e250c6783cc14cdba80320b8dbb to your computer and use it in GitHub Desktop.
Custom Body Attributes
add_filter( 'um_email_template_body_attrs', 'my_body_template', 10, 2 );
function my_body_template( $slug, $args ) {
return 'style="-webkit-text-size-adjust: none;-ms-text-size-adjust: none; margin: 0; padding: 0; width: 100%;"';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment