hi Alo!
there's a way to do not strip the css code inb the editor?
<style>
bla bla bla
</style>
become
<style><!--
bla bla bla
-->
</style>
Linkin external css isnt looking good in the client.
Tks a lot
Diego
hi Alo!
there's a way to do not strip the css code inb the editor?
<style>
bla bla bla
</style>
become
<style><!--
bla bla bla
-->
</style>
Linkin external css isnt looking good in the client.
Tks a lot
Diego
I suggest that you use inline css (eg. <p style="margin:1em">) and the old html tag attributes like width, height...: they should be the best solutions for mail clients. Some tips here: http://www.eventualo.net/blog/wp-alo-easymail-newsletter-faq/#faq-11
I wanted to leave the line breaks filter on, for users, but add an HTML header and footer.
I did this by adding the header and footer via shortcodes in the WordPress functions.php file.
I did have to modify the tables, however.
<table>
<tr>
<td>
<p>paragraph</p>
<!-- comment -->
</td>
</tr>
</table>
still adds line breaks while
<table>
<tr>
<td><p>paragraph</p><!-- comment -->
</td>
</tr>
</table>
worked fine.
Seems only table, td and tr don't get breaks.
dizplay not sure if you found an answer to your question. However the only way I was able to show <style> in the newsletter was to create a shortcode function.
Yes I am aware that <style> doesn't work in Gmail.
function newsletterStyle() {
return '<style> <insert your styles here> </style>';
}
add_shortcode('newsletter', 'newsletterStyle');
In your newsletter put [newsletter] at the top of the template and when you send a newsletter you should see your styles.
You must log in to post.