I created an HTML Email Template that works fine in most email clients. As expected, I have alt
and title
attributes in different elements.
My problem is that GMAIL is reading those alt
or title
attributes and including its content in the email preview section.
I tried to follow these instructions here, but having a Plain Text email didn't solve my problem.
For reference, this is what I mean by "Email preview" (for privacy reasons, I can't screenshot my email):
Any ideas on that?
What you need is called pre header
or preview text
. This is hidden text placed just after the body tag in a div
<div style="display:none;font-size:1px;color:#{color};line-height:1px;font-family:{font};max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;">
Pre header/Preview text here ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
</div>
Things to note:
͏
until you get what you are after.Here is character count for preview text based off different devices.
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With