Solved! Go to Solution.
<div style="display: none !important;">This is the pre-header. It should be ~100 characters long for best results as different clients will show different amounts of the pre-header…</div>
<div>This is the actual start of the email content here!</div>
When you click “Update” you’ll only see “This is the actual start of the email content here!” in TinyMCE, but the pre-header will be applied.
I have noticed that if you use a display none, you will actually remove the preview text in several different email clients.
I find that if you use a color:transparent!important; color:#backgroundcolor; that you will render invisible(because it's blended) and you don't loose preview text in any of the other email clients.
Which clients? I want to look into this.
<div style="display: none !important;">This is the pre-header. It should be ~100 characters long for best results as different clients will show different amounts of the pre-header…</div>
<div>This is the actual start of the email content here!</div>
When you click “Update” you’ll only see “This is the actual start of the email content here!” in TinyMCE, but the pre-header will be applied.
Hello. This is my first time using these boards and I'm still new to HTML and email marketing. I followed Justin's recommendation. While testing, it worked perfectly for G-mail and mobile devices. However, the pre-header was being rendered in Microsoft's Outlook WebApp, which looks somewhat awkward. Has anyone come across this? I didn't create our email template and had to modify it in Dreamweaver, so I didn't do exactly as Justin said but I'm perplexed why it would work in the others and not one. I'm stuck between having the preheader render awkwardly on some platforms or having the preheader defaulting to whatever comes next in the code. As suggestions or advice? I appreciate any assistance.
You should use our "preheader" feature in our new email editor. It should work across all clients for you.
Thanks,
Justin
Hi Justin, would you care to share some screen grabs of this?
Thanks!
Chris
Screen grabs of the code? Or what it looks like in an email client? It's just the preview you would see on an iPhone or in Gmail inbox...
A screen grab of the code would be perfect!
The code is pasted above. It should be the first thing that comes after the HTML <BODY> element. You can put it in the Email Template itself or insert it using the text editor if the very first thing in the <BODY> is a mktEditable <div>
How do you get around the View as webpage text when that is added to the EMAIL.
Another way of displaying this text if you are coding without the wyswig is to place a snippet at the beginning of the HTML.
<!-- THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->
<div style="text-align:center;color:#333333(same as background);color:transparent!important;font-size:1px;line-height:1px;opacity:0;" >
come look at this cool email
</div>
<!-- END - -->
If you click "Edit Settings" in the Email Editor you will see an option to toggle "Include View As Webpage"
I found a resolve that works across the board.
The resolve is to place the view as webpage token into place after the snippet. Here is my fully functional code snippet.
<!-- we chose to remove the row once you drop to mobile-->
<tr id="remove">
<td align="center" class="textStyle" >
<!-- THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->
<div class="textStyle" style="text-align:center;color:#333333;color:transparent!important;font-size:1px;line-height:1px;opacity:0;" >
Make sure to come visit our cool event
<!-- Non breaking spaces to clear any other data from showing -->
</div>
<!-- Marketo webpage token -->
{{system.viewAsWebpageLink}}
<!-- end of marketo token -->
<!-- END -*****THIS IS THE PREVIEW TEXT LOCATION FOR RENDERING THE PREVIEW TEXT BELOW THE SUBJECT LINE - THIS SECTION DOES NOT DISPLAY IN THE BODY OF THE EMAIL -->
</td>
</tr>
Ops, I forgot to mention this table row needs to be the first snippet in the email.