SOLVED

Re: Email Preview Pane

Go to solution
Anonymous
Not applicable
Hello,

How can I control what is shown in the email preview pane when a person goes through their email? I am looking to control what is shown for mobile devices.

Thanks,
David
Tags (1)
1 ACCEPTED SOLUTION
Justin_Cooperm2
Level 10
Make the first thing that appears in the Email Template under the <body> a “mktEditable” section. Add whatever other content or “mktEditable” sections you want beneath that first section (it’s irrelevant what else is in the template). Then, when you create an individual Email Asset from this template, double-click the first region in the email. Click the “HTML” button in the TinyMCE rich-text editor. Add a pre-header at the very beginning of the code like 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.

View solution in original post

13 REPLIES 13
Anonymous
Not applicable

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.

Justin_Cooperm2
Level 10

Which clients? I want to look into this.

Justin_Cooperm2
Level 10
Make the first thing that appears in the Email Template under the <body> a “mktEditable” section. Add whatever other content or “mktEditable” sections you want beneath that first section (it’s irrelevant what else is in the template). Then, when you create an individual Email Asset from this template, double-click the first region in the email. Click the “HTML” button in the TinyMCE rich-text editor. Add a pre-header at the very beginning of the code like 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.

Anonymous
Not applicable

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.

Justin_Cooperm2
Level 10

You should use our "preheader" feature in our new email editor. It should work across all clients for you.

Thanks,

Justin

Chris_Saporito
Level 9

Hi Justin, would you care to share some screen grabs of this?

Thanks!

Chris

Justin_Cooperm2
Level 10

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...

Chris_Saporito
Level 9

A screen grab of the code would be perfect!

Justin_Cooperm2
Level 10

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>

Anonymous
Not applicable

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 - -->

Justin_Cooperm2
Level 10

If you click "Edit Settings" in the Email Editor you will see an option to toggle "Include View As Webpage"

Anonymous
Not applicable

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>

Anonymous
Not applicable

Ops, I forgot to mention this table row needs to be the first snippet in the email.